Live data from Hacker News

12 Factor CLI Apps

medium.com

251–253 of 253 posts

Re: 12 Factor CLI Apps

#251

Earlier quoted context omitted.

As you're getting mostly replies agreeing - I never read man pages. I look up the odd parameter every now and then though.

Do you mean you look up parameters somewhere else, e.g. in a web browser using google?

Pretty much, yes.

Re: 12 Factor CLI Apps

#252

Earlier quoted context omitted.

What do you mean by aggressive?

I don't know what they mean, but I know that I really dislike how PS's autocomplete works. If the possible commands are (for the sake of discussion) `Get-AppLockerFileInformation` and `Get-AppLockerPolicy`. If you type `Get-App` and hit Tab, it will autofill to `Get-AppLockerFileInformation` which I just really don't like, and I need to keep hitting tab to cycle through all other possible `Get-App*` commands. What I…

Not sure what version you are using, but that is not how PowerShell does completion for me. If I type in `Get-Package` for example and hit tab, I get printed a grid of the possible completions. Then I keep typing until it's not ambiguous, at which point it will complete the whole command. If there are hundreds of suggestions, it will ask if I really want to see them all.

I am running PowerShell 6.1.0 (which I think uses PSReadline). PSReadline is also very customisable, but this is the default behaviour.

Re: 12 Factor CLI Apps

#253

Also on Color. Don't got go all pschadelic. I've found that some programs using 256-color is unreadable with my terminal colors. Also unix commands tend to have illegible colors in Powershell on Windows. (Ripgrep for example). Powershell defaults to a blue background.

Can you suggest a better default color configuration for ripgrep? We actually already have different default colors for Windows as opposed to unix.[1] [1] - https://github.com/BurntSushi/ripgrep/blob/acf226c39d7926425...

After some time of experimenting with this. I probably can't recommend any colors.

The issue I've found is that of the 16 build in colors. cmd defaults to trivial colors. (eg Blue is 000080 and Bright blue is 0000FF.)

Which give terrible contrast. MS seems to be working on improving things on their end. Then I'll be able to make it readable. (Eg: https://github.com/Microsoft/console/tree/master/tools/Color...)

Post reply on HN