#snippets #squirrel #cli

app sq-cli

sq(Squirrel) is a command-line snippet keeper

1 unstable release

0.1.0 Oct 13, 2024

#356 in Command line utilities

Download history 114/week @ 2024-10-07 54/week @ 2024-10-14

168 downloads per month

Apache-2.0

24KB
313 lines

sq(squirrel): command-line snippet manager

sq(squirrel) is a command-line snippet manager based on Just(command runner).

  • Bash version: argc(Bash framework)
  • Rust version: native bin without bash and argc required

Features

Commands

  • list: list snippet - sq list
  • add: add new snippet - sq add or sq add
  • edit: edit snippet - sq edit snippet_name

Bash Edition

Get started

  • Please install Just and argc first.
  • Clone the repository to $HOME/sq: git clone git@github.com:linux-china/sq.git $HOME/sq
  • Add the sq directory to your PATH: export PATH=$PATH:/path/to/sq
  • Run sq list to see the available snippets

Rust edition

  • Install: cargo binstall sq-cli

Why sq(squirrel)?

  • Simple: sq is written by Bash and argc, easy to understand and modify
  • Just: professional command runner with lots of features, good to save and run commands
  • UX: snippet.just is normal justfile, and easy to edit with your favorite editor

References

Dependencies

~15–26MB
~423K SLoC