| Crates.io | dipse |
| lib.rs | dipse |
| version | 0.6.0 |
| created_at | 2021-10-24 08:32:46.409666+00 |
| updated_at | 2022-03-29 09:34:20.954455+00 |
| description | Directory Independent Project Script Executor |
| homepage | |
| repository | https://github.com/DevHyperCoder/dipse.git |
| max_upload_size | |
| id | 470274 |
| size | 69,239 |
dipse <cmd1> <cmd2> <cmd3> ...
Use your same "aliases" for all your projects
cargo install dipseClone the repository: git clone https://github.com/DevHyperCoder/dipse.git
Change Directory into dipse: cd dipse/
Run the code: cargo run -- <your options>
Build the code: cargo build --release
Install it: cargo install --path .
Eventually, dipse will be available on the AUR
-f: Specify which config file to use-d: Debug flag. Print out the command to execute-n: Do not execute the command. Use in combination with -dadd: Add a new aliasupdate: Update a aliasdelete: Delete a aliaslist: Lists all the aliases for current dir. Optionally specify a name to see the command of that aliasedit: Edit the config file for current dir. If -f is provided, it will edit that instead. Uses your $EDITOR variable, please set it before you run this commandEach project can have its own .d.toml file.
["/rust/project"]
f = "cargo fmt"
r = "cargo run"
b = "cargo build"
["/node/project"]
f = "npm run format"
r = "npm run dev"
b = "npm run build"
See how in the above example, the aliases work for both /rust/project and /node/project. Path can also be relative.
NOTE: Each path and command needs to be inside ""
dipse will traverse up the directory structure to find a .d.toml file. If none is found, it will create a config file in $XDG_CONFIG_HOME/dipse/
# Add
dipse add "alias name" "command to execute"
# List specific
dipse list "alias name"
# List all
dipse list
dipse update "alias name" "command to execute"
dipse delete "alias name"
You can execute multiple aliases at once like this:
dipse alias1 alias2 alias3 alias4
Each alias will be executed after the previous one is finished.
Seperate the arguments from the alias name like this:
dipse alias_name -- --option-you-want "param1"
In case you wish to run multiple aliases at the same time, dipse will apply the arguments to the last alias only.
dipse alias1 alias2 -- "a" In this case, "a" is passed only to alias2, alias1 is executed without any changes.
Pull Requests and Issues are accepted.
dipse is licensed under the GNU General Public License 3. Our copy of
GPL-3 can be found here