cacherapp / cacher-cli Goto Github PK
View Code? Open in Web Editor NEWThe command line interface to Cacher.
License: MIT License
The command line interface to Cacher.
License: MIT License
I would really like to import the batch of snippets from the json
file I have exported from GistBox.
If there were any API documentation I could do it myself via a self-written script probably.
Yet, as there is now this CLI tool for cacher.io
in the making, maybe it could implement such import feature.
Has there been any desire to insert an existing snippet (how would search occur) from CLI?
I am thinking something like:
> cacher snippets:insert --name filename.txt --labels bash,???
I guess I could always use gist, but I am so used to using Cacher in my workflow (usually use it from the VSCode extension) so it would be swell if it were available on the CLI
In my case, I dont use VSCode for PHP work (I prefer PHPStorm, but there is no plugin)
Noticed in the README instructions the terminal install is out of date. It should be npm install -g @cacherapp/cli
instead of npm install -g @cacher/cli
From the documentation, it looks like you can only add snippets to Cacher.
Any chance of viewing snippets?
Something like:
cacher snippet view:{snippet title}
, where {snippet title} matches or fuzzy matches the name of the snippet.
The ergonomics of this aren't super simple, but even dumping the snippet to stdout would be useful because then a user can pipe that into pbcopy
. I'm surprised this issue hasn't been opened already.
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: <title>" and nothing else. The current behavior could be maintained by another flag, something more specific like --suppress-links
or something better. Even better, maybe the granularity of the logging could also be configured with ~/.cacher.storage.json
, or another config file, if that one is too low-level.
Thoughts? Im happy to submit a PR for any of the aforementioned functionality, but I first want to make sure my ideas make sense.
Thanks!
Love the cli. Is there support for tags/labels?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.