Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.23 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.23 KB

Spellbook

Introduction

Spellbook is a CLI utility to store references for shell commands (aka spells). This is a CRU (Create, Read, Update) app. No "D" since spells cannot be removed from a fantasy realm (afaik).

Basic Usage

Searching for Spells

Get all spells in your Spellbook

$ Spellbook find
ID  Description                   Contents                                Language  Tags
2   list comprehension            x = [row.attribute for row in table]    python    python,lists,comprehension
3   find process bound to a port  netstat -tulpn | egrep "<port number>"  bash      shell,networking

Get a spell based on ID

$ Spellbook find id <id>
ID  Description         Contents                              Language  Tags
2   list comprehension  x = [row.attribute for row in table]  python    python,lists,comprehension

Find spells based on tags

$ Spellbook find tag <tag>
ID  Description                   Contents                                Language  Tags
3   find process bound to a port  netstat -tulpn | egrep "<port number>"  bash      shell,networking

Advanced Usage

How advanced do you really think this can get?

Testing

It works on my machine ¯\_(ツ)_/¯