sesame icon indicating copy to clipboard operation
sesame copied to clipboard

Option to Run Silently (Do Not Print Anything to the Terminal)

Open amarakon opened this issue 1 year ago • 2 comments

I would like for an option to run silently. Maybe -s and --silent. It should prevent the messages from appearing in the terminal.

amarakon avatar Aug 13 '22 06:08 amarakon

That seems like a good request but I'm not sure how to do this easily, I would like to avoid having ifs everywhere.

  1. Close or redirect stdout.
  2. Wrap the print in a function that does the check.
  3. Use a logging library that does this.

I'll have a look at the different options, let me know if you have any ideas.

green7ea avatar Aug 15 '22 15:08 green7ea

Thanks, I've never programmed in Rust so I'm not sure either.

amarakon avatar Aug 15 '22 23:08 amarakon