Ben Chuanlong Du's Blog

It is never too late to learn.

Great Command Line Tools Developed in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

GQL

GQL is a query language with a syntax very similar to SQL with a tiny engine to perform queries on .git files instance of database files, the engine executes the …

Hands on the Cobra Module in Golang

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Comments

  1. Cobra support groups of flags which appear together or are mutually exclusive. For detailed discussions, please refer to Flag Groups .

Quickly Start a Cobra-based project

Below is an example of creating a cobra-based project "icon".

Parsing Command-line Arguments in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

There are 2 popular crates clap and structopt (based on clap) for this purpose. I personally prefer clap .