Skip to content

The tool for organizing frequently used commands within the terminal user interface

License

Notifications You must be signed in to change notification settings

aleksandersh/tuiPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TUI commands pack

A tool for organizing frequently used commands within the terminal user interface.

You can describe a set of commands in a single TOML file and easily access them from the terminal interface.

Follow the example from the examples catalog or watch the GIF record

tuiPack example

Usage

# ask for help
tuiPack --help

Terminal user interface

# start the terminal user interface with commands from the specified config
tuiPack --config ./example/commandPack.toml

Hotkeys

/ - to enter filtering mode d - to show a command description

Execute a command by an alias

# show available commands
tuiPack --config ./example/commandPack.toml --aliases
# execute "print_message_from_env" command
tuiPack --config ./example/commandPack.toml --script print_message_from_env

TOML config

additional environment variables

COMMAND_PACK_DIR - absolute path of the config directory
COMMAND_PACK_EXECUTION_DIR - absolute path of the executuon directory

example
name = "Command pack name"

[[commands]]
name = "command displayed name"
type = "script"
script = 'echo "$ENV_1" "$ENV_2"'
alias = "command_alias_for_terminal"
description = "description of the command"

[commands.env]
ENV_2 = "ENV_2_VALUE"

[env]
ENV_1 = "ENV_1_VALUE"

About

The tool for organizing frequently used commands within the terminal user interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published