Package: cmdcheatsheet
_      _                _       _               _   
  ___ _ __ ___   __| | ___| |__   ___  __ _| |_ ___| |__   ___  ___| |_ 
 / __| '_ ` _ \ / _` |/ __| '_ \ / _ \/ _` | __/ __| '_ \ / _ \/ _ \ __|
| (__| | | | | | (_| | (__| | | |  __/ (_| | |_\__ \ | | |  __/  __/ |_ 
 \___|_| |_| |_|\__,_|\___|_| |_|\___|\__,_|\__|___/_| |_|\___|\___|\__|Is a terminal command tool 🖥 that helps to store commands you don't want to keep in the head 🧠Help commandcmdcheatsheet-hor:cmdcheatsheet--helphere is the output:--commands, -c - Display all commands.
  --commands-info, -ci - Display all commands, including all details such as ids, etc., all commands.
  --commands-table, -ct - Display all commands using a table view.
  --add <command> <description>, -a <command> <description> - Add new command to the list.
  --update <id> <name> <description>, -u <id> <name> <description> - Update a <command> by id.
  --delete <id>, -d <id> - Delete a <command> by id.
  --find <command>, -f <command> - Search for a command.
  --find-info <command>, -fi <command> - Search for a command and include all details, such as ids, etc.
  --global-find <command>, -gf <command> - Global search.
  --detailed-global-find <command>, -gfi <command> - Search globally for a command and include all details, such as ids, etc.
  --find-table <command>, -ft <command> - Search for a command and show it using a table view.
  --available-command-names <number_of_columns:optional>, -acn <number_of_columns:optional> - Show all stored command names.
  --version, -v - Display version.
  --help, -h - Show a program help notes.
  --display-available-configs, -dac - Display available configurations.
  --display-configs <key:optional>, -dc <key:optional> - Display configurations.
  --remove-config <key>, -rc <key> - Remove a config.
  --set-config <key> <value>, -sc <key> <value> - Set config.
  --set-config-to-default, -sctd - Set the configuration to default.
  --set-single-config-to-default <key>, -ssctd <key> - Set a single configuration to default.
  --add-alternative-store <store_name> <store_location>, -aas <store_name> <store_location> - Add alternative commands store (JSON file) location.
  --delete-alternative-store <store_name>, -das <store_name> - Delete alternative commands store (JSON file).
  --display-applied-alternative-store-name, -daasn - Display the name of applied alternative store.
  --display-available-alternative-stores, -daas - Display available alternative stores.
  --switch-to-alternative-store <store_name>, -stas <store_name> - Switch to alternative store location.
  --update-alternative-store <store_name> <store_location>, -uas <store_name> <store_location> - Update alternative commands store (JSON file).Add commandcmdcheatsheet-a<command><command_description>for example:cmdcheatsheet-a"ls""List directory content"Display commandsDisplay all commands:cmdcheatsheet-cor:cmdcheatsheetDisplay commands along with ids:cmdcheatsheet -ciDisplay commands using table view:cmdcheatsheet-ctSearch for a commandcmdcheatsheet-f<command>Search for a command and show it along with an id:cmdcheatsheet-fi<command>Search for a command and show it using the table view:cmdcheatsheet-ft<command>Global search includes search by command or description:cmdcheatsheet-gf<query>Global search and show it along with an id:cmdcheatsheet-gfi<query>Update commandcmdcheatsheet-u<command_id><command><command_description>Remove commandcmdcheatsheet-d<command_id>Show all command namescmdcheatsheet-acnConfigurationcmdcheatsheet configuration folder is located at~/.config/cmdcheatsheet.The config is calledconfig.jsonAvailable configurationscurrentStoreLocation- Path to file in JSON format that consists of the command list.alternativeStores- Path list to JSON files that might be used as an alternative commands store location.
Every item in the list has astoreNameproperty, which is just a store name and the second property isstoreLocation, responsible for the path to the commands store (JSON file location).Here is aconfig.jsonexample:{"currentStoreLocation":"/Users/myusername/.config/cmdcheatsheet/commands.json","alternativeStores":[{"storeName":"unix","storeLocation":"/Users/myusername/my-configs/cmdcheatsheet/unix_commands.json"},{"storeName":"windows","storeLocation":"/Users/myusername/my-configs/cmdcheatsheet/windows_commands.json"}]}Display configurationcmdcheatsheet-dcor display configuration by key:cmdcheatsheet-dc<config_key>Display available configsThis command displays all available configurations. Each command consists of a key and an explanation.cmdcheatsheet-dacSet configcmdcheatsheet-sc<configuration_key><configuration_value>Remove configuration by keycmdcheatsheet-rc<config_key>Set configuration to defaultcmdcheatsheet-sctdSet a single config valuecmdcheatsheet-ssctd<configuration_key>Alternative commands storesIt's possible to have multiple command stores and switch between them.
In this way, you'll be able to have separate configs for windows, Linux, and OSX, or in case you want to split the config in some other way.
This feature is called alternative command stores.Add alternative commands storecmdcheatsheet-aas<store_name><store_location>Update alternative commands storecmdcheatsheet-uas<store_name><store_location>Delete alternative commands storecmdcheatsheet-das<store_name>Display available alternative storescmdcheatsheet-daasSwitch to alternative commands storecmdcheatsheet-stas<store_name>Display applied alternative store namecmdcheatsheet-daasnDependenciesNote:that will includeRich.
Rich is a library to display information on the terminal, it is required, and when installed, it's deeply integrated intocmdcheatsheetto display beautiful output.LicenseThis project is licensed under the terms of the MIT license.