Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 2.08 KB

File metadata and controls

28 lines (15 loc) · 2.08 KB

Shell_Command_Menu (aka CLI_Menu) :)

A simple Rust App to run stored shell commands from a config (Commands.json) file via a menu with options.

This is a simple app I wrote to help learn Rust and also to give me a framework for my daily CLI workflow. It tracks completion of each command and execution.

Commands are stored in a cli_menu_cmd.json JSON file located at your OS-Appropriate data folder using rust Directories config_dir.

*Most of the initial credit goes to ChatGPT which wrote most of the code. Thanks to @Scott Pack for his talk at BSides 2023 which helped set the stage

Sound Effects credit Pixabay whoosh message

Example of my daily Usage with Tod

I have each of my daily task contexts grouped into a query command, that I then work through one at a time, starting from the top, as a daily routie.

image

Iterm2 Usage

I use this script to run my Todo list (CLI Menu) and Zoom the window, so I have it setup and mapped to a single td command which does the following:

  1. Runs the Applescript zoom_iterm.scpt with osascript zoom_iterm.scpt - this script opens a new iTerm window with saved profile CLI_Large which is a saved profile that resizes the window and moves it to the bottom of my screen automatically
  2. Executes the CLI_Menu program

You can configure custom window position/size in here if needed but it's not necessary as iTerm saves profile window locations for me.

However, in most cases I just have iTerm reopen saved windows, so even that isn't always necessary :)