Skip to content

omnious0o0/commands-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commands-wrapper

Wraps multi-step shell sequences into a single named command. Use it to chain multiple steps together into one. Steps are like:

    - command: "shell command to run"
    - code.py: "Python code snippet to excute"
    - send: "text to send to the process"
    - press_key: "key to press"
    - wait: "seconds to wait"

Installation

Unix (Linux/macOS/WSL):

curl -fsSL https://github.com/omnious0o0/commands-wrapper/main/.commands-wrapper/install.sh | sh

Windows (PowerShell):

irm https://github.com/omnious0o0/commands-wrapper/main/.commands-wrapper/install.ps1 | iex

usage

easy (for humans)

Run interactive TUI using:

cw # or commands-wrapper

This allows you to view all your "wraps", modify them or add new ones.

AI agents (skill)

If you're an AI agent, configure directly like this:

commands-wrapper add --yaml <<EOF
command-name:
  description: "..."
  steps:
    - command: "..."
EOF

See YAML format below

YAML format

wrap-name: # The name you'll type to run this wrap
  description: "What this command does"
  steps:
    - command: "shell command to run"
    - code.py: "Python code snippet to excute" # only python
    - send: "text to send to the process"
    - press_key: "key to press"
    - wait: "seconds to wait"
    ... # add as much as you want

Commands

commands-wrapper list 
commands-wrapper remove "command-name" # seppirate by comma for multiple at once
cw <command-name>
commands-wrapper <command-name>
commands-wrapper update # or upd

you can also rerun the install command

commands-wrapper --uninstall

Support

If you found this project useful, please consider starring the repo and dropping me a follow for more stuff like this :) It takes less than a minute and helps a lot ❤️

If you find a bug or unexpected behavior, please report it!


RECOMMENDED: Check out commands-wrapper you and your agent will love it!


If you want to show extra love, consider buying me a coffee! ☕

Buy Me a Coffee

Related projects

And more on omnious!

License

MIT

About

commands-wrapper is a tool that allows you to wrap commands, and run them using a single command of your choice.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors