CacherApp / cacher-cli

The command line interface to Cacher.
110 stars 15 forks source link

Actually quiet output with --quiet #5

Open yonilerner opened 6 years ago

yonilerner commented 6 years ago

First, just wanna say, I love this tool. Thanks!

One issue Im having is that sometimes I create large snippets, but I dont want the output to blast my terminal. The --quiet option hides the "View your snippet..." messages, but it doesnt hide the much louder "Snippet file content read from ...: " messages.

It seems to me that --quiet should truly quiet the output - maybe as far as only showing "Snippet successfully created: " and nothing else. The current behavior could be maintained by another flag, something more specific like <code>--suppress-links</code> or something better. Even better, maybe the granularity of the logging could also be configured with <code>~/.cacher.storage.json</code>, or another config file, if that one is too low-level.</p> <p>Thoughts? Im happy to submit a PR for any of the aforementioned functionality, but I first want to make sure my ideas make sense.</p> <p>Thanks!</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/jookyboi"><img src="https://avatars.githubusercontent.com/u/570858?v=4" />jookyboi</a> commented <strong> 6 years ago</strong> </div> <div class="markdown-body"> <p>Thanks for the suggestion. I'll introduce this fix in the next release.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>