Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we need the note about config file is not found? #57

Closed
shinokada opened this issue May 6, 2020 · 4 comments
Closed

Do we need the note about config file is not found? #57

shinokada opened this issue May 6, 2020 · 4 comments
Assignees

Comments

@shinokada
Copy link

shinokada commented May 6, 2020

After running procs I get the following note. Do we need this?

note: configuration file (/Users/shinokada/Library/Preferences/com.github.dalance.procs/config.toml) is not found
      please see https://github.com/dalance/procs#configuration
procs --version
procs 0.10.1
@dalance
Copy link
Owner

dalance commented May 6, 2020

The default configuration is minimal to fit narrow terminal.
So I recommend to configure with your environment and requirement.
If you want to use as default, you can generate the default configuration like below:

$ procs --config > /Users/shinokada/Library/Preferences/com.github.dalance.procs/config.toml

@mgeisler
Copy link

The note was the first thing I noticed when trying out procs — and I would remove it. To me, it makes the program "annoying by default", which is a bad default 😄

I would make procs work like other Unix system tools, which don't mention a potential config file on every invocation. Let people read about the config file in the man page (or the homepage if there is no man page).

@dalance
Copy link
Owner

dalance commented Sep 25, 2020

Thank you for your suggestion.
I will remove the notification message and add help message instead like below.
What do you think?

$ procs -h

procs 0.10.5-pre
A modern replacement for ps

please see https://github.com/dalance/procs#configuration to configure columns

USAGE:
    procs [FLAGS] [OPTIONS] [--] [KEYWORD]...

FLAGS:
    -a, --and        AND  logic for multi-keyword
    -o, --or         OR   logic for multi-keyword
    -d, --nand       NAND logic for multi-keyword
    -r, --nor        NOR  logic for multi-keyword
    -l, --list       Show list of kind
    -t, --tree       Tree view
    -w, --watch      Watch mode with default interval (1s)
        --config     Generate configuration sample file
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -W, --watch-interval <second>    Watch mode with custom interval
    -i, --insert <kind>...           Insert column to slot
        --sorta <kind>               Sort column by ascending
        --sortd <kind>               Sort column by descending
    -c, --color <color>              Color mode [possible values: auto, always, disable]
    -p, --pager <pager>              Pager mode [possible values: auto, always, disable]
        --interval <millisec>        Interval to calculate throughput [default: 100]

ARGS:
    <KEYWORD>...    Keywords for search

@dalance dalance reopened this Sep 25, 2020
@dalance dalance self-assigned this Sep 25, 2020
@mgeisler
Copy link

Hey @dalance Awesome, I think that is much better! Thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants