Shell Program Manager written in Rust for managing shell scripts.
Notice: This program is still in its early development phase. Be sure to check this out later! Or try it now!
If you have cargo
installed, you could run the following command to set it up:
cargo install spm
TODO
Run the command to see a full list of available commands:
spm
The output should look like this:
Shell Program Manager written in Rust for managing shell scripts.
Usage: spm <COMMAND>
Commands:
run Run a shell script
install Install a shell script program or from a Git repository
list Show installed shell script programs
uninstall, -r Uninstall shell script programs
check Validate the shell script syntax
new Create a new shell script project
version, -v Check version info
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
You don't need to set the privilige if you use spm
to run a shell script, just type:
spm run ./path/to/your/shell/script # Can be an absolute path too
You can create a shell script program by using this command:
spm new <your-program-name>
This will create a simple .sh
file with a sh
shebang and a "hello world" function structure.
You can now install all shell scripts from a Git repository:
spm install https://github.com/username/repository.git
This will clone the repository and install all .sh
files found within it.
- Support install a program from a git repository.
- Support AI features.
- Check if the commands in a shell script has installed.
And more to go as you raise an issue
in this repository!
Any contribution is welcome. Issues, or PRs, whatever. There are no guidelines on how you should structure your code in this repository just yet.
This project is open source under MIT license.