0.3.0 • Published 4 months ago

chtsht v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

CHTSHT

Display or execute your own custom cheat sheet

chtsht-demo

Install

npm i -g chtsht

Config

Add .chtsht file to your home directory. e.g. ~/.chtsht

// Config structure
type Config = {
  [cheatsheet: string]: Array<{
    description: string
    command: string
  }>
}

Example:

{
  "npm": [
    {
      "description": "Show global packages",
      "command": "npm ls -g --depth=0"
    },
    {
      "description": "Show outdated global packages",
      "command": "npm outdated -g --depth=0"
    }
  ],
  "yarn": [
    {
      "description": "List caches",
      "command": "yarn cache list"
    },
    {
      "description": "Clean cache(s)",
      "command": "yarn cache clean <name>"
    }
  ]
}

Note: "command" values with <> brackets will prompt you to input the enclosed value if the --exec | -e flag is used.

CLI

Alternatively, you can use npx to use this CLI.

  $ chtsht --help

  Usage
    $ chtsht <name>

  Options
    --exec, -e  Execute the command

  Examples
    # Show select list of all cheat sheets
    $ chtsht

    # Show the docker cheat sheet
    $ chtsht docker

    # Execute the command
    $ chtsht -e docker
0.3.0

4 months ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago