littlemanco / the-golden-path.net

A template for writing a new tool or service.
0 stars 0 forks source link

CLI #3

Open andrewhowdencom opened 4 years ago

andrewhowdencom commented 4 years ago

The CLI use case

andrewhowdencom commented 4 years ago

binary cli options should be written as:

--foo
--no-foo

Instead of

--foo=true
andrewhowdencom commented 4 years ago

Should consume the standard CLI semantics. That means being pipeable, stdin/out/err.

Also, bonus points for outputting in a variety of formats (starting with text & json)

andrewhowdencom commented 4 years ago

hints seem interesting

$ git add 
Nothing specified, nothing added.
hint: Maybe you wanted to say 'git add .'?
hint: Turn this message off by running
hint: "git config advice.addEmptyPathspec false"
andrewhowdencom commented 4 years ago

server:

# Get people to _opt out_ of TLS rather than opt in. Warn when they're running "insecurely", with a problem code.

--no-mutual-tls
--no-tls
andrewhowdencom commented 4 years ago

Help should contain examples of a command; perhaps 3 different ones for different purposes.

ffmpg -f -h -g 

(and so on)

If possible, get them from analytics — like the most common commands or so.