Skip to content

Latest commit

 

History

History
55 lines (47 loc) · 1.88 KB

shell.md

File metadata and controls

55 lines (47 loc) · 1.88 KB

< 📚 Commands Help

🐚 Shell

> rugby shell --help
 > Run shell command from Rugby.

 Arguments:
╭──────────────────────────────────╮
│ command  * Shell script command. │
╰──────────────────────────────────╯
 Options:
╭────────────────────────────────────────────────────────────╮
│ -o, --output  * Output mode: fold, multiline, silent, raw. │
╰────────────────────────────────────────────────────────────╯
 Flags:
╭───────────────────────────────────────────────╮
│ -v, --verbose []  * Increase verbosity level. │
│ -q, --quiet []    * Decrease verbosity level. │
│ -h, --help        * Show help information.    │
╰───────────────────────────────────────────────╯

Discussion

This command is useful if you want to run some project configuration scripts before each build.
Describe a sequence of commands and you can run all of them at once with just the rugby command.

# For example
basic:
- command: shell
  argument: xcodegen
- command: shell
  argument: pod install
- command: cache

This is equivalent to:

> xcodegen && pod install && rugby cache

Call it:

> rugby basic

If it is the first plan in your plans file, call it just as:

> rugby

You can find more information about plan command in 📖 Plan Help.