Skip to content

Commit

Permalink
refactor: may_execute_command.sh (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Jun 6, 2024
1 parent 7d5b14b commit 4052bc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@")"
Expand All @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions tools/may_execute_command.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 4052bc9

Please sign in to comment.