refactor: may_execute_command.sh (#19)

This commit is contained in:
sigoden
2024-06-06 09:28:15 +08:00
committed by GitHub
parent 7d5b14bca1
commit 4052bc944e
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -82,11 +82,11 @@ Create a new bashscript in the [./tools/](./tools/) directory (.e.g. `may_execut
#!/usr/bin/env bash
set -e
# @describe Executes a shell command.
# @option --command~ Command to execute, such as `ls -la`
# @describe Runs a shell command.
# @option --command! The command to execute.
main() {
eval $argc_shell_command
eval "$argc_command"
}
eval "$(argc --argc-eval "$0" "$@")"
@@ -109,7 +109,7 @@ The relationship between comment tags and parameters in function declarations is
### Javascript
Create a new javascript in the [./tools/](./tools/) directory (.e.g. `may_execute_command.js`).
Create a new javascript in the [./tools/](./tools/) directory (.e.g. `may_execute_js_code.js`).
```js
exports.declarate = function declarate() {
+2 -2
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -e
# @describe Executes a shell command.
# @option --command! Command to execute, such as `ls -la`
# @describe Runs a shell command.
# @option --command! The command to execute.
main() {
eval "$argc_command"