Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: may_execute_command.sh #19

Merged
merged 3 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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