rbcli 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rakeTasks +7 -0
- data/.rbenv-gemsets +1 -0
- data/CHANGELOG.md +22 -0
- data/Gemfile.lock +25 -24
- data/README.md +2 -2
- data/docs-src/archetypes/default.md +6 -0
- data/docs-src/config.toml +37 -0
- data/docs-src/{docs/index.md → content/_index.md} +4 -4
- data/docs-src/content/advanced/_index.md +11 -0
- data/docs-src/{docs → content}/advanced/automatic_updates.md +6 -2
- data/docs-src/{docs → content}/advanced/command_types.md +8 -4
- data/docs-src/{docs → content}/advanced/distributed_state_locking.md +6 -2
- data/docs-src/{docs → content}/advanced/hooks.md +6 -2
- data/docs-src/{docs → content}/advanced/interactive_commands.md +5 -1
- data/docs-src/{docs → content}/advanced/logging.md +6 -2
- data/docs-src/{docs → content}/advanced/remote_execution.md +5 -1
- data/docs-src/{docs → content}/advanced/state_storage.md +6 -3
- data/docs-src/{docs → content}/advanced/user_config_files.md +5 -1
- data/docs-src/content/development/_index.md +11 -0
- data/docs-src/{docs/imported → content/development}/changelog.md +58 -6
- data/docs-src/{docs → content}/development/code_of_conduct.md +8 -1
- data/docs-src/{docs → content}/development/contributing.md +16 -1
- data/docs-src/{docs → content}/development/license.md +9 -2
- data/docs-src/{docs/imported/quick_reference.md → content/quick_reference/_index.md} +8 -1
- data/docs-src/{docs → content}/tutorial/10-getting_started.md +7 -1
- data/docs-src/{docs → content}/tutorial/20-project_layout.md +10 -2
- data/docs-src/{docs → content}/tutorial/30-your_first_command.md +10 -4
- data/docs-src/{docs → content}/tutorial/40-options_parameters_and_arguments.md +9 -3
- data/docs-src/{docs → content}/tutorial/50-publishing.md +9 -3
- data/docs-src/content/tutorial/_index.md +11 -0
- data/docs-src/{docs/whoami.md → content/whoami/_index.md} +11 -5
- data/docs-src/layouts/partials/logo.html +3 -0
- data/docs-src/makesite.sh +33 -7
- data/docs-src/mkdocs-archived.tar.gz +0 -0
- data/docs-src/runsite.sh +6 -1
- data/docs-src/themes/hugo-theme-learn/.editorconfig +16 -0
- data/docs-src/themes/hugo-theme-learn/.gitignore +3 -0
- data/docs-src/themes/hugo-theme-learn/.grenrc.yml +25 -0
- data/docs-src/themes/hugo-theme-learn/CHANGELOG.md +154 -0
- data/docs-src/themes/hugo-theme-learn/LICENSE.md +22 -0
- data/docs-src/themes/hugo-theme-learn/README.md +60 -0
- data/docs-src/themes/hugo-theme-learn/archetypes/chapter.md +13 -0
- data/docs-src/themes/hugo-theme-learn/archetypes/default.md +7 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/LICENSE.md +20 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/config.toml +75 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/_index.en.md +41 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/_index.fr.md +43 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/_index.en.md +12 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/_index.fr.md +12 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/configuration/_index.en.md +58 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/configuration/_index.fr.md +54 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/installation/_index.en.md +102 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/installation/_index.fr.md +100 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/installation/images/chapter.png +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/requirements/_index.en.md +11 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/requirements/_index.fr.md +11 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/requirements/images/magic.gif +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/style-customization/_index.en.md +194 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/style-customization/_index.fr.md +194 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/style-customization/images/blue-variant.png +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/style-customization/images/green-variant.png +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/basics/style-customization/images/red-variant.png +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/_index.en.md +12 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/_index.fr.md +12 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/archetypes.en.md +57 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/archetypes.fr.md +57 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/i18n/_index.en.md +78 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/i18n/_index.fr.md +78 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/i18n/images/i18n-menu.gif +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/icons.en.md +41 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/markdown.en.md +665 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/markdown.fr.md +666 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/menushortcuts.en.md +109 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/menushortcuts.fr.md +109 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/pages/_index.en.md +166 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/pages/_index.fr.md +146 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/pages/images/frontmatter-icon.png +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/pages/images/pages-chapter.png +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/pages/images/pages-default.png +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/tags.en.md +39 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/cont/tags.fr.md +40 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/credits.en.md +28 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/credits.fr.md +28 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/_index.en.md +16 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/_index.fr.md +16 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.en.files/BachGavotteShort.mp3 +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.en.files/Carroll_AliceAuPaysDesMerveilles.pdf +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.en.files/adivorciarsetoca00cape.pdf +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.en.files/hugo.png +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.en.files/movieselectricsheep-flock-244-32500-2.mp4 +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.en.md +85 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.fr.files/BachGavotteShort.mp3 +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.fr.files/Carroll_AliceAuPaysDesMerveilles.pdf +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.fr.files/adivorciarsetoca00cape.pdf +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.fr.files/hugo.png +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.fr.files/movieselectricsheep-flock-244-32500-2.mp4 +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/attachments.fr.md +85 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/button.en.md +16 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/button.fr.md +16 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/_index.en.md +45 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/_index.fr.md +45 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/_index.en.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/_index.fr.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.en.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.fr.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.en.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.fr.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.en.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.fr.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.en.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.fr.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-2/_index.en.md +11 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-2/_index.fr.md +11 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-2/test3.en.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-2/test3.fr.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-3/_index.en.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-3/_index.fr.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-4/_index.en.md +7 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/children-4/_index.fr.md +7 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/test.en.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/children/test.fr.md +6 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/expand.en.md +45 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/expand.fr.md +45 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/mermaid.en.md +283 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/mermaid.fr.md +283 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/notice.en.md +62 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/notice.fr.md +62 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/siteparam.en.md +23 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/shortcodes/siteparam.fr.md +23 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/showcase.en.md +10 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/content/showcase.fr.md +11 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/layouts/partials/custom-footer.html +10 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/layouts/partials/logo.html +39 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/layouts/partials/menu-footer.html +14 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/layouts/shortcodes/ghcontributors.html +31 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/static/css/theme-mine.css +104 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/static/fonts/monogramos-webfont.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/static/fonts/monogramos-webfont.svg +237 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/static/fonts/monogramos-webfont.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/static/fonts/monogramos-webfont.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/static/fonts/monogramos-webfont.woff2 +0 -0
- data/docs-src/themes/hugo-theme-learn/exampleSite/static/images/showcase/tat.png +0 -0
- data/docs-src/themes/hugo-theme-learn/i18n/en.toml +26 -0
- data/docs-src/themes/hugo-theme-learn/i18n/es.toml +26 -0
- data/docs-src/themes/hugo-theme-learn/i18n/fr.toml +26 -0
- data/docs-src/themes/hugo-theme-learn/i18n/id.toml +26 -0
- data/docs-src/themes/hugo-theme-learn/i18n/nl.toml +26 -0
- data/docs-src/themes/hugo-theme-learn/i18n/pt.toml +26 -0
- data/docs-src/themes/hugo-theme-learn/i18n/tr.toml +26 -0
- data/docs-src/themes/hugo-theme-learn/images/screenshot.png +0 -0
- data/docs-src/themes/hugo-theme-learn/images/tn.png +0 -0
- data/docs-src/themes/hugo-theme-learn/layouts/404.html +56 -0
- data/docs-src/themes/hugo-theme-learn/layouts/_default/list.html +22 -0
- data/docs-src/themes/hugo-theme-learn/layouts/_default/single.html +13 -0
- data/docs-src/themes/hugo-theme-learn/layouts/index.html +31 -0
- data/docs-src/themes/hugo-theme-learn/layouts/index.json +12 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/custom-comments.html +3 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/custom-footer.html +5 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/custom-header.html +5 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/favicon.html +1 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/footer.html +78 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/header.html +109 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/logo.html +19 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/menu-footer.html +1 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/menu.html +150 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/meta.html +2 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/search.html +16 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/tags.html +7 -0
- data/docs-src/themes/hugo-theme-learn/layouts/partials/toc.html +5 -0
- data/docs-src/themes/hugo-theme-learn/layouts/shortcodes/attachments.html +36 -0
- data/docs-src/themes/hugo-theme-learn/layouts/shortcodes/button.html +14 -0
- data/docs-src/themes/hugo-theme-learn/layouts/shortcodes/children.html +101 -0
- data/docs-src/themes/hugo-theme-learn/layouts/shortcodes/expand.html +17 -0
- data/docs-src/themes/hugo-theme-learn/layouts/shortcodes/mermaid.html +2 -0
- data/docs-src/themes/hugo-theme-learn/layouts/shortcodes/notice.html +2 -0
- data/docs-src/themes/hugo-theme-learn/layouts/shortcodes/ref.html +14 -0
- data/docs-src/themes/hugo-theme-learn/layouts/shortcodes/relref.html +14 -0
- data/docs-src/themes/hugo-theme-learn/layouts/shortcodes/siteparam.html +7 -0
- data/docs-src/themes/hugo-theme-learn/netlify.toml +24 -0
- data/docs-src/themes/hugo-theme-learn/static/css/atom-one-dark-reasonable.css +77 -0
- data/docs-src/themes/hugo-theme-learn/static/css/auto-complete.css +47 -0
- data/docs-src/themes/hugo-theme-learn/static/css/featherlight.min.css +8 -0
- data/docs-src/themes/hugo-theme-learn/static/css/fontawesome-all.min.css +1 -0
- data/docs-src/themes/hugo-theme-learn/static/css/hugo-theme.css +254 -0
- data/docs-src/themes/hugo-theme-learn/static/css/hybrid.css +102 -0
- data/docs-src/themes/hugo-theme-learn/static/css/nucleus.css +615 -0
- data/docs-src/themes/hugo-theme-learn/static/css/perfect-scrollbar.min.css +2 -0
- data/docs-src/themes/hugo-theme-learn/static/css/tags.css +49 -0
- data/docs-src/themes/hugo-theme-learn/static/css/theme-blue.css +111 -0
- data/docs-src/themes/hugo-theme-learn/static/css/theme-green.css +111 -0
- data/docs-src/themes/hugo-theme-learn/static/css/theme-red.css +111 -0
- data/docs-src/themes/hugo-theme-learn/static/css/theme.css +1132 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Inconsolata.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Inconsolata.svg +359 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Inconsolata.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Inconsolata.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-Normal-webfont.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-Normal-webfont.svg +1019 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-Normal-webfont.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-Normal-webfont.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-Normal-webfont.woff2 +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-UltraLight-webfont.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-UltraLight-webfont.svg +918 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-UltraLight-webfont.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-UltraLight-webfont.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_200.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_200.svg +332 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_200.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_200.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_200.woff2 +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_300.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_300.svg +331 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_300.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_300.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_300.woff2 +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_500.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_500.svg +333 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_500.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_500.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/static/fonts/Work_Sans_500.woff2 +0 -0
- data/docs-src/themes/hugo-theme-learn/static/images/clippy.svg +1 -0
- data/docs-src/themes/hugo-theme-learn/static/images/favicon.png +0 -0
- data/docs-src/themes/hugo-theme-learn/static/images/gopher-404.jpg +0 -0
- data/docs-src/themes/hugo-theme-learn/static/js/auto-complete.js +223 -0
- data/docs-src/themes/hugo-theme-learn/static/js/clipboard.min.js +7 -0
- data/docs-src/themes/hugo-theme-learn/static/js/featherlight.min.js +9 -0
- data/docs-src/themes/hugo-theme-learn/static/js/highlight.pack.js +3 -0
- data/docs-src/themes/hugo-theme-learn/static/js/html5shiv-printshiv.min.js +4 -0
- data/docs-src/themes/hugo-theme-learn/static/js/hugo-learn.js +91 -0
- data/docs-src/themes/hugo-theme-learn/static/js/jquery-3.3.1.min.js +2 -0
- data/docs-src/themes/hugo-theme-learn/static/js/jquery.sticky.js +288 -0
- data/docs-src/themes/hugo-theme-learn/static/js/learn.js +459 -0
- data/docs-src/themes/hugo-theme-learn/static/js/lunr.min.js +6 -0
- data/docs-src/themes/hugo-theme-learn/static/js/modernizr.custom-3.6.0.js +3 -0
- data/docs-src/themes/hugo-theme-learn/static/js/perfect-scrollbar.jquery.min.js +2 -0
- data/docs-src/themes/hugo-theme-learn/static/js/perfect-scrollbar.min.js +2 -0
- data/docs-src/themes/hugo-theme-learn/static/js/search.js +93 -0
- data/docs-src/themes/hugo-theme-learn/static/mermaid/mermaid.css +277 -0
- data/docs-src/themes/hugo-theme-learn/static/mermaid/mermaid.dark.css +278 -0
- data/docs-src/themes/hugo-theme-learn/static/mermaid/mermaid.forest.css +356 -0
- data/docs-src/themes/hugo-theme-learn/static/mermaid/mermaid.js +8 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-brands-400.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-brands-400.svg +1260 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-brands-400.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-brands-400.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-brands-400.woff2 +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-regular-400.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-regular-400.svg +471 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-regular-400.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-regular-400.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-regular-400.woff2 +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-solid-900.eot +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-solid-900.svg +2763 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-solid-900.ttf +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-solid-900.woff +0 -0
- data/docs-src/themes/hugo-theme-learn/static/webfonts/fa-solid-900.woff2 +0 -0
- data/docs-src/themes/hugo-theme-learn/theme.toml +21 -0
- data/docs-src/themes/hugo-theme-learn/wercker.yml +16 -0
- data/docs/404.html +54 -670
- data/docs/advanced/automatic_updates/index.html +962 -635
- data/docs/advanced/command_types/index.html +1021 -736
- data/docs/advanced/distributed_state_locking/index.html +957 -622
- data/docs/advanced/hooks/index.html +968 -661
- data/docs/advanced/index.html +1099 -0
- data/docs/advanced/index.xml +117 -0
- data/docs/advanced/interactive_commands/index.html +960 -636
- data/docs/advanced/logging/index.html +963 -639
- data/docs/advanced/remote_execution/index.html +959 -634
- data/docs/advanced/state_storage/index.html +1049 -764
- data/docs/advanced/user_config_files/index.html +981 -649
- data/docs/categories/index.html +1094 -0
- data/docs/categories/index.xml +14 -0
- data/docs/css/atom-one-dark-reasonable.css +77 -0
- data/docs/css/auto-complete.css +47 -0
- data/docs/css/featherlight.min.css +8 -0
- data/docs/css/fontawesome-all.min.css +1 -0
- data/docs/css/hugo-theme.css +254 -0
- data/docs/css/hybrid.css +102 -0
- data/docs/css/nucleus.css +615 -0
- data/docs/css/perfect-scrollbar.min.css +2 -0
- data/docs/css/tags.css +49 -0
- data/docs/css/theme-blue.css +111 -0
- data/docs/css/theme-green.css +111 -0
- data/docs/css/theme-red.css +111 -0
- data/docs/css/theme.css +1132 -0
- data/docs/development/changelog/index.html +1368 -0
- data/docs/development/code_of_conduct/index.html +969 -687
- data/docs/development/contributing/index.html +993 -587
- data/docs/development/index.html +1099 -0
- data/docs/development/index.xml +54 -0
- data/docs/development/license/index.html +959 -579
- data/docs/fonts/Inconsolata.eot +0 -0
- data/docs/fonts/Inconsolata.svg +359 -0
- data/docs/fonts/Inconsolata.ttf +0 -0
- data/docs/fonts/Inconsolata.woff +0 -0
- data/docs/fonts/Novecentosanswide-Normal-webfont.eot +0 -0
- data/docs/fonts/Novecentosanswide-Normal-webfont.svg +1019 -0
- data/docs/fonts/Novecentosanswide-Normal-webfont.ttf +0 -0
- data/docs/fonts/Novecentosanswide-Normal-webfont.woff +0 -0
- data/docs/fonts/Novecentosanswide-Normal-webfont.woff2 +0 -0
- data/docs/fonts/Novecentosanswide-UltraLight-webfont.eot +0 -0
- data/docs/fonts/Novecentosanswide-UltraLight-webfont.svg +918 -0
- data/docs/fonts/Novecentosanswide-UltraLight-webfont.ttf +0 -0
- data/docs/fonts/Novecentosanswide-UltraLight-webfont.woff +0 -0
- data/docs/fonts/Novecentosanswide-UltraLight-webfont.woff2 +0 -0
- data/docs/fonts/Work_Sans_200.eot +0 -0
- data/docs/fonts/Work_Sans_200.svg +332 -0
- data/docs/fonts/Work_Sans_200.ttf +0 -0
- data/docs/fonts/Work_Sans_200.woff +0 -0
- data/docs/fonts/Work_Sans_200.woff2 +0 -0
- data/docs/fonts/Work_Sans_300.eot +0 -0
- data/docs/fonts/Work_Sans_300.svg +331 -0
- data/docs/fonts/Work_Sans_300.ttf +0 -0
- data/docs/fonts/Work_Sans_300.woff +0 -0
- data/docs/fonts/Work_Sans_300.woff2 +0 -0
- data/docs/fonts/Work_Sans_500.eot +0 -0
- data/docs/fonts/Work_Sans_500.svg +333 -0
- data/docs/fonts/Work_Sans_500.ttf +0 -0
- data/docs/fonts/Work_Sans_500.woff +0 -0
- data/docs/fonts/Work_Sans_500.woff2 +0 -0
- data/docs/images/clippy.svg +1 -0
- data/docs/images/favicon.png +0 -0
- data/docs/images/gopher-404.jpg +0 -0
- data/docs/imported/changelog/index.html +1208 -1020
- data/docs/imported/index.html +1191 -0
- data/docs/imported/index.xml +23 -0
- data/docs/index.html +907 -591
- data/docs/index.json +183 -0
- data/docs/index.xml +212 -0
- data/docs/js/auto-complete.js +223 -0
- data/docs/js/clipboard.min.js +7 -0
- data/docs/js/featherlight.min.js +9 -0
- data/docs/js/highlight.pack.js +3 -0
- data/docs/js/html5shiv-printshiv.min.js +4 -0
- data/docs/js/hugo-learn.js +91 -0
- data/docs/js/jquery-3.3.1.min.js +2 -0
- data/docs/js/jquery.sticky.js +288 -0
- data/docs/js/learn.js +459 -0
- data/docs/js/lunr.min.js +6 -0
- data/docs/js/modernizr.custom-3.6.0.js +3 -0
- data/docs/js/perfect-scrollbar.jquery.min.js +2 -0
- data/docs/js/perfect-scrollbar.min.js +2 -0
- data/docs/js/search.js +93 -0
- data/docs/mermaid/mermaid.css +277 -0
- data/docs/mermaid/mermaid.dark.css +278 -0
- data/docs/mermaid/mermaid.forest.css +356 -0
- data/docs/mermaid/mermaid.js +8 -0
- data/docs/quick_reference/index.html +1279 -0
- data/docs/quick_reference/index.xml +15 -0
- data/docs/sitemap.xml +135 -107
- data/docs/tags/index.html +1094 -0
- data/docs/tags/index.xml +14 -0
- data/docs/tutorial/10-getting_started/index.html +960 -649
- data/docs/tutorial/20-project_layout/index.html +1059 -778
- data/docs/tutorial/30-your_first_command/index.html +1040 -729
- data/docs/tutorial/40-options_parameters_and_arguments/index.html +1151 -868
- data/docs/tutorial/50-publishing/index.html +969 -676
- data/docs/tutorial/index.html +1099 -0
- data/docs/tutorial/index.xml +71 -0
- data/docs/webfonts/fa-brands-400.eot +0 -0
- data/docs/webfonts/fa-brands-400.svg +1260 -0
- data/docs/webfonts/fa-brands-400.ttf +0 -0
- data/docs/webfonts/fa-brands-400.woff +0 -0
- data/docs/webfonts/fa-brands-400.woff2 +0 -0
- data/docs/webfonts/fa-regular-400.eot +0 -0
- data/docs/webfonts/fa-regular-400.svg +471 -0
- data/docs/webfonts/fa-regular-400.ttf +0 -0
- data/docs/webfonts/fa-regular-400.woff +0 -0
- data/docs/webfonts/fa-regular-400.woff2 +0 -0
- data/docs/webfonts/fa-solid-900.eot +0 -0
- data/docs/webfonts/fa-solid-900.svg +2763 -0
- data/docs/webfonts/fa-solid-900.ttf +0 -0
- data/docs/webfonts/fa-solid-900.woff +0 -0
- data/docs/webfonts/fa-solid-900.woff2 +0 -0
- data/docs/whoami/index.html +947 -567
- data/docs/whoami/index.xml +15 -0
- data/exe/rbcli +1 -0
- data/lib/rbcli-tool/project.rb +6 -2
- data/lib/rbcli/version.rb +1 -1
- data/rbcli.gemspec +1 -1
- data/skeletons/project/.rakeTasks +7 -0
- data/skeletons/project/exe/executable +1 -3
- data/skeletons/project/lib/lib.erb +7 -0
- data/skeletons/project/untitled.gemspec +13 -15
- metadata +356 -65
- data/docs-src/mkdocs.yml +0 -79
- data/docs/assets/fonts/font-awesome.css +0 -4
- data/docs/assets/fonts/material-icons.css +0 -13
- data/docs/assets/fonts/specimen/FontAwesome.ttf +0 -0
- data/docs/assets/fonts/specimen/FontAwesome.woff +0 -0
- data/docs/assets/fonts/specimen/FontAwesome.woff2 +0 -0
- data/docs/assets/fonts/specimen/MaterialIcons-Regular.ttf +0 -0
- data/docs/assets/fonts/specimen/MaterialIcons-Regular.woff +0 -0
- data/docs/assets/fonts/specimen/MaterialIcons-Regular.woff2 +0 -0
- data/docs/assets/images/favicon.png +0 -0
- data/docs/assets/images/icons/bitbucket.1b09e088.svg +0 -20
- data/docs/assets/images/icons/github.f0b8504a.svg +0 -18
- data/docs/assets/images/icons/gitlab.6dd19c00.svg +0 -38
- data/docs/assets/javascripts/application.583bbe55.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.da.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.de.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.du.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.es.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.fi.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.fr.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.hu.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.it.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.jp.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.multi.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.no.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.pt.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.ro.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.ru.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.stemmer.support.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.sv.js +0 -1
- data/docs/assets/javascripts/lunr/lunr.tr.js +0 -1
- data/docs/assets/javascripts/lunr/tinyseg.js +0 -1
- data/docs/assets/javascripts/modernizr.1aa3b519.js +0 -1
- data/docs/assets/stylesheets/application-palette.22915126.css +0 -1176
- data/docs/assets/stylesheets/application.451f80e5.css +0 -2552
- data/docs/imported/quick_reference/index.html +0 -1120
- data/docs/search/search_index.json +0 -1
- data/docs/sitemap.xml.gz +0 -0
- data/skeletons/project/lib/.keep +0 -0
@@ -1,1126 +1,1409 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en" class="js csstransforms3d">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<meta name="generator" content="Hugo 0.55.6" />
|
7
|
+
<meta name="description" content="">
|
1
8
|
|
2
9
|
|
10
|
+
<link rel="icon" href="/rbcli/images/favicon.png" type="image/png">
|
3
11
|
|
12
|
+
<title>Options, Parameters, and Arguments :: RBCli Documentation</title>
|
4
13
|
|
5
|
-
<!DOCTYPE html>
|
6
|
-
<html lang="en" class="no-js">
|
7
|
-
<head>
|
8
|
-
|
9
|
-
<meta charset="utf-8">
|
10
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
11
|
-
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
12
|
-
|
13
|
-
<meta name="description" content="Description">
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<meta name="author" content="Andrew Khoury">
|
18
|
-
|
19
|
-
|
20
|
-
<meta name="lang:clipboard.copy" content="Copy to clipboard">
|
21
|
-
|
22
|
-
<meta name="lang:clipboard.copied" content="Copied to clipboard">
|
23
|
-
|
24
|
-
<meta name="lang:search.language" content="en">
|
25
|
-
|
26
|
-
<meta name="lang:search.pipeline.stopwords" content="True">
|
27
|
-
|
28
|
-
<meta name="lang:search.pipeline.trimmer" content="True">
|
29
|
-
|
30
|
-
<meta name="lang:search.result.none" content="No matching documents">
|
31
|
-
|
32
|
-
<meta name="lang:search.result.one" content="1 matching document">
|
33
|
-
|
34
|
-
<meta name="lang:search.result.other" content="# matching documents">
|
35
|
-
|
36
|
-
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
37
|
-
|
38
|
-
<link rel="shortcut icon" href="../../assets/images/favicon.png">
|
39
|
-
<meta name="generator" content="mkdocs-1.0.3, mkdocs-material-3.0.4">
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
<title>Options, Parameters, and Arguments - RBCli Documentation</title>
|
44
|
-
|
45
14
|
|
15
|
+
<link href="/rbcli/css/nucleus.css?1561087612" rel="stylesheet">
|
16
|
+
<link href="/rbcli/css/fontawesome-all.min.css?1561087612" rel="stylesheet">
|
17
|
+
<link href="/rbcli/css/hybrid.css?1561087612" rel="stylesheet">
|
18
|
+
<link href="/rbcli/css/featherlight.min.css?1561087612" rel="stylesheet">
|
19
|
+
<link href="/rbcli/css/perfect-scrollbar.min.css?1561087612" rel="stylesheet">
|
20
|
+
<link href="/rbcli/css/auto-complete.css?1561087612" rel="stylesheet">
|
21
|
+
<link href="/rbcli/css/atom-one-dark-reasonable.css?1561087612" rel="stylesheet">
|
22
|
+
<link href="/rbcli/css/theme.css?1561087612" rel="stylesheet">
|
23
|
+
<link href="/rbcli/css/hugo-theme.css?1561087612" rel="stylesheet">
|
46
24
|
|
47
|
-
<link
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
<script src="../../assets/javascripts/modernizr.1aa3b519.js"></script>
|
25
|
+
<link href="/rbcli/css/theme-blue.css?1561087612" rel="stylesheet">
|
53
26
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
27
|
+
|
28
|
+
<script src="/rbcli/js/jquery-3.3.1.min.js?1561087612"></script>
|
29
|
+
|
30
|
+
<style>
|
31
|
+
:root #header + #content > #left > #rlblock_left{
|
32
|
+
display:none !important;
|
33
|
+
}
|
59
34
|
|
60
|
-
|
61
|
-
<link rel="stylesheet" href="../../assets/fonts/material-icons.css">
|
62
|
-
|
35
|
+
</style>
|
63
36
|
|
64
37
|
</head>
|
65
|
-
|
66
|
-
<
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
19-18.125 8.5-18.125-8.5-10.75-19-3.125-20.5 3.125-20.5 10.75-19
|
78
|
-
18.125-8.5 18.125 8.5 10.75 19 3.125 20.5zM360
|
79
|
-
304q0-30-17.25-51t-46.75-21q-10.25 0-48.75 5.25-17.75 2.75-39.25
|
80
|
-
2.75t-39.25-2.75q-38-5.25-48.75-5.25-29.5 0-46.75 21t-17.25 51q0 22 8
|
81
|
-
38.375t20.25 25.75 30.5 15 35 7.375 37.25 1.75h42q20.5 0
|
82
|
-
37.25-1.75t35-7.375 30.5-15 20.25-25.75 8-38.375zM416 260q0 51.75-15.25
|
83
|
-
82.75-9.5 19.25-26.375 33.25t-35.25 21.5-42.5 11.875-42.875 5.5-41.75
|
84
|
-
1.125q-19.5 0-35.5-0.75t-36.875-3.125-38.125-7.5-34.25-12.875-30.25-20.25-21.5-28.75q-15.5-30.75-15.5-82.75
|
85
|
-
0-59.25 34-99-6.75-20.5-6.75-42.5 0-29 12.75-54.5 27 0 47.5 9.875t47.25
|
86
|
-
30.875q36.75-8.75 77.25-8.75 37 0 70 8 26.25-20.5
|
87
|
-
46.75-30.25t47.25-9.75q12.75 25.5 12.75 54.5 0 21.75-6.75 42 34 40 34
|
88
|
-
99.5z" />
|
89
|
-
</svg>
|
90
|
-
|
91
|
-
</defs>
|
92
|
-
</svg>
|
93
|
-
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
|
94
|
-
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
|
95
|
-
<label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
|
38
|
+
<body class="" data-url="/rbcli/tutorial/40-options_parameters_and_arguments/">
|
39
|
+
<nav id="sidebar" class="">
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<div id="header-wrapper">
|
44
|
+
<div id="header">
|
45
|
+
<a id="logo" href="https://akhoury6.github.io/rbcli/" style="font-size: 40px">
|
46
|
+
<span class="fas fa-terminal"></span> 𝚁𝙱𝙲𝚕𝚒
|
47
|
+
</a>
|
48
|
+
|
49
|
+
</div>
|
96
50
|
|
97
|
-
|
98
|
-
|
99
|
-
|
51
|
+
<div class="searchbox">
|
52
|
+
<label for="search-by"><i class="fas fa-search"></i></label>
|
53
|
+
<input data-search-input id="search-by" type="search" placeholder="Search...">
|
54
|
+
<span data-search-clear=""><i class="fas fa-times"></i></span>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<script type="text/javascript" src="/rbcli/js/lunr.min.js?1561087612"></script>
|
58
|
+
<script type="text/javascript" src="/rbcli/js/auto-complete.js?1561087612"></script>
|
59
|
+
<script type="text/javascript">
|
100
60
|
|
61
|
+
var baseurl = "https:\/\/akhoury6.github.io\/rbcli\/";
|
101
62
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
</div>
|
112
|
-
<div class="md-flex__cell md-flex__cell--shrink">
|
113
|
-
<label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
|
114
|
-
</div>
|
115
|
-
<div class="md-flex__cell md-flex__cell--stretch">
|
116
|
-
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
117
|
-
|
118
|
-
|
119
|
-
<span class="md-header-nav__topic">
|
120
|
-
RBCli Documentation
|
121
|
-
</span>
|
122
|
-
<span class="md-header-nav__topic">
|
123
|
-
Options, Parameters, and Arguments
|
124
|
-
</span>
|
125
|
-
|
126
|
-
|
127
|
-
</div>
|
128
|
-
</div>
|
129
|
-
<div class="md-flex__cell md-flex__cell--shrink">
|
63
|
+
</script>
|
64
|
+
<script type="text/javascript" src="/rbcli/js/search.js?1561087612"></script>
|
65
|
+
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<div class="highlightable">
|
70
|
+
<ul class="topics">
|
71
|
+
|
130
72
|
|
131
73
|
|
132
|
-
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
133
|
-
|
134
|
-
<div class="md-search" data-md-component="search" role="dialog">
|
135
|
-
<label class="md-search__overlay" for="__search"></label>
|
136
|
-
<div class="md-search__inner" role="search">
|
137
|
-
<form class="md-search__form" name="search">
|
138
|
-
<input type="text" class="md-search__input" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
|
139
|
-
<label class="md-icon md-search__icon" for="__search"></label>
|
140
|
-
<button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
|
141
|
-

|
142
|
-
</button>
|
143
|
-
</form>
|
144
|
-
<div class="md-search__output">
|
145
|
-
<div class="md-search__scrollwrap" data-md-scrollfix>
|
146
|
-
<div class="md-search-result" data-md-component="result">
|
147
|
-
<div class="md-search-result__meta">
|
148
|
-
Type to start searching
|
149
|
-
</div>
|
150
|
-
<ol class="md-search-result__list"></ol>
|
151
|
-
</div>
|
152
|
-
</div>
|
153
|
-
</div>
|
154
|
-
</div>
|
155
|
-
</div>
|
156
74
|
|
157
|
-
|
158
|
-
</div>
|
159
|
-
|
160
|
-
<div class="md-flex__cell md-flex__cell--shrink">
|
161
|
-
<div class="md-header-nav__source">
|
162
|
-
|
163
75
|
|
164
76
|
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<li data-nav-id="/rbcli/quick_reference/" title="Quick Reference" class="dd-item
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
">
|
85
|
+
<a href="/rbcli/quick_reference/">
|
86
|
+
Quick Reference
|
87
|
+
|
88
|
+
</a>
|
89
|
+
|
90
|
+
|
91
|
+
</li>
|
165
92
|
|
93
|
+
|
166
94
|
|
95
|
+
|
96
|
+
|
167
97
|
|
168
|
-
<a href="https://github.com/akhoury6/rbcli/" title="Go to repository" class="md-source" data-md-source="github">
|
169
|
-
|
170
|
-
<div class="md-source__icon">
|
171
|
-
<svg viewBox="0 0 24 24" width="24" height="24">
|
172
|
-
<use xlink:href="#__github" width="24" height="24"></use>
|
173
|
-
</svg>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
<div class="md-source__repository">
|
177
|
-
GitHub
|
178
|
-
</div>
|
179
|
-
</a>
|
180
98
|
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
</div>
|
185
|
-
</nav>
|
186
|
-
</header>
|
99
|
+
|
100
|
+
|
187
101
|
|
188
|
-
<
|
189
|
-
|
102
|
+
<li data-nav-id="/rbcli/tutorial/" title="Tutorial" class="dd-item
|
103
|
+
parent
|
190
104
|
|
105
|
+
|
106
|
+
">
|
107
|
+
<a href="/rbcli/tutorial/">
|
108
|
+
Tutorial
|
109
|
+
|
110
|
+
</a>
|
191
111
|
|
192
112
|
|
113
|
+
<ul>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
193
118
|
|
119
|
+
|
120
|
+
|
121
|
+
|
194
122
|
|
195
|
-
|
196
123
|
|
197
|
-
|
198
|
-
|
199
|
-
<ul class="md-tabs__list">
|
200
|
-
|
201
|
-
|
202
|
-
<li class="md-tabs__item">
|
203
|
-
|
204
|
-
<a href="../.." title="Home" class="md-tabs__link">
|
205
|
-
Home
|
206
|
-
</a>
|
124
|
+
|
125
|
+
|
207
126
|
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
127
|
+
<li data-nav-id="/rbcli/tutorial/10-getting_started/" title="Getting Started" class="dd-item ">
|
128
|
+
<a href="/rbcli/tutorial/10-getting_started/">
|
129
|
+
<b>1. </b>Getting Started
|
213
130
|
|
214
|
-
|
215
|
-
|
216
|
-
<li class="md-tabs__item">
|
217
|
-
|
218
|
-
<a href="../10-getting_started/" title="Tutorial" class="md-tabs__link md-tabs__link--active">
|
219
|
-
Tutorial
|
220
131
|
</a>
|
221
|
-
|
222
132
|
</li>
|
133
|
+
|
223
134
|
|
135
|
+
|
224
136
|
|
225
|
-
|
226
|
-
|
227
|
-
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
228
144
|
|
229
|
-
|
230
|
-
|
231
|
-
<a href="
|
232
|
-
|
145
|
+
|
146
|
+
<li data-nav-id="/rbcli/tutorial/20-project_layout/" title="The Project Layout" class="dd-item ">
|
147
|
+
<a href="/rbcli/tutorial/20-project_layout/">
|
148
|
+
<b>2. </b>The Project Layout
|
149
|
+
|
233
150
|
</a>
|
234
|
-
|
235
151
|
</li>
|
152
|
+
|
236
153
|
|
154
|
+
|
237
155
|
|
238
|
-
|
239
|
-
|
240
|
-
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
241
163
|
|
242
|
-
|
243
|
-
|
244
|
-
<a href="
|
245
|
-
|
164
|
+
|
165
|
+
<li data-nav-id="/rbcli/tutorial/30-your_first_command/" title="Your First Command" class="dd-item ">
|
166
|
+
<a href="/rbcli/tutorial/30-your_first_command/">
|
167
|
+
<b>3. </b>Your First Command
|
168
|
+
|
246
169
|
</a>
|
247
|
-
|
248
170
|
</li>
|
171
|
+
|
249
172
|
|
173
|
+
|
250
174
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
</ul>
|
255
|
-
</div>
|
256
|
-
</nav>
|
257
|
-
|
258
|
-
<main class="md-main">
|
259
|
-
<div class="md-main__inner md-grid" data-md-component="container">
|
175
|
+
|
260
176
|
|
261
177
|
|
262
|
-
|
263
|
-
<div class="md-sidebar__scrollwrap">
|
264
|
-
<div class="md-sidebar__inner">
|
265
|
-
<nav class="md-nav md-nav--primary" data-md-level="0">
|
266
|
-
<label class="md-nav__title md-nav__title--site" for="__drawer">
|
267
|
-
<a href="../.." title="RBCli Documentation" class="md-nav__button md-logo">
|
268
|
-
|
269
|
-
<i class="md-icon">devices</i>
|
270
|
-
|
271
|
-
</a>
|
272
|
-
RBCli Documentation
|
273
|
-
</label>
|
274
|
-
|
275
|
-
<div class="md-nav__source">
|
276
|
-
|
178
|
+
|
277
179
|
|
278
180
|
|
181
|
+
|
279
182
|
|
280
|
-
|
281
|
-
|
282
|
-
<a href="https://github.com/akhoury6/rbcli/" title="Go to repository" class="md-source" data-md-source="github">
|
283
|
-
|
284
|
-
<div class="md-source__icon">
|
285
|
-
<svg viewBox="0 0 24 24" width="24" height="24">
|
286
|
-
<use xlink:href="#__github" width="24" height="24"></use>
|
287
|
-
</svg>
|
288
|
-
</div>
|
289
183
|
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
</
|
184
|
+
<li data-nav-id="/rbcli/tutorial/40-options_parameters_and_arguments/" title="Options, Parameters, and Arguments" class="dd-item active">
|
185
|
+
<a href="/rbcli/tutorial/40-options_parameters_and_arguments/">
|
186
|
+
<b>4. </b>Options, Parameters, and Arguments
|
187
|
+
|
188
|
+
</a>
|
189
|
+
</li>
|
190
|
+
|
296
191
|
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
192
|
+
|
302
193
|
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
303
198
|
|
304
|
-
<li class="md-nav__item">
|
305
|
-
<a href="../.." title="Home" class="md-nav__link">
|
306
|
-
Home
|
307
|
-
</a>
|
308
|
-
</li>
|
309
199
|
|
200
|
+
|
201
|
+
|
310
202
|
|
311
|
-
|
312
|
-
|
313
|
-
|
203
|
+
<li data-nav-id="/rbcli/tutorial/50-publishing/" title="Publishing Your Application" class="dd-item ">
|
204
|
+
<a href="/rbcli/tutorial/50-publishing/">
|
205
|
+
<b>5. </b>Publishing Your Application
|
206
|
+
|
207
|
+
</a>
|
208
|
+
</li>
|
209
|
+
|
210
|
+
|
211
|
+
|
314
212
|
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
</ul>
|
217
|
+
|
218
|
+
</li>
|
219
|
+
|
220
|
+
|
315
221
|
|
316
|
-
|
317
|
-
|
318
|
-
Quick Reference
|
319
|
-
</a>
|
320
|
-
</li>
|
222
|
+
|
223
|
+
|
321
224
|
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
225
|
|
226
|
+
|
327
227
|
|
328
|
-
|
329
|
-
|
330
|
-
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
|
331
228
|
|
332
|
-
|
333
|
-
|
334
|
-
<label class="md-nav__link" for="nav-3">
|
335
|
-
Tutorial
|
336
|
-
</label>
|
337
|
-
<nav class="md-nav" data-md-component="collapsible" data-md-level="1">
|
338
|
-
<label class="md-nav__title" for="nav-3">
|
339
|
-
Tutorial
|
340
|
-
</label>
|
341
|
-
<ul class="md-nav__list" data-md-scrollfix>
|
229
|
+
<li data-nav-id="/rbcli/advanced/" title="Advanced" class="dd-item
|
230
|
+
|
342
231
|
|
343
232
|
|
233
|
+
">
|
234
|
+
<a href="/rbcli/advanced/">
|
235
|
+
Advanced
|
344
236
|
|
237
|
+
</a>
|
238
|
+
|
239
|
+
|
240
|
+
<ul>
|
345
241
|
|
346
242
|
|
347
|
-
|
348
|
-
|
349
|
-
<li class="md-nav__item">
|
350
|
-
<a href="../10-getting_started/" title="Getting Started" class="md-nav__link">
|
351
|
-
Getting Started
|
352
|
-
</a>
|
353
|
-
</li>
|
354
|
-
|
355
|
-
|
356
243
|
|
357
244
|
|
245
|
+
|
358
246
|
|
247
|
+
|
248
|
+
|
359
249
|
|
360
250
|
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
<li data-nav-id="/rbcli/advanced/automatic_updates/" title="Automatic Updates" class="dd-item ">
|
255
|
+
<a href="/rbcli/advanced/automatic_updates/">
|
256
|
+
Automatic Updates
|
367
257
|
|
368
|
-
|
369
|
-
|
370
|
-
|
258
|
+
</a>
|
259
|
+
</li>
|
260
|
+
|
261
|
+
|
262
|
+
|
371
263
|
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
372
268
|
|
373
|
-
<li class="md-nav__item">
|
374
|
-
<a href="../30-your_first_command/" title="Your First Command" class="md-nav__link">
|
375
|
-
Your First Command
|
376
|
-
</a>
|
377
|
-
</li>
|
378
269
|
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<li data-nav-id="/rbcli/advanced/command_types/" title="Command Types" class="dd-item ">
|
274
|
+
<a href="/rbcli/advanced/command_types/">
|
275
|
+
Command Types
|
379
276
|
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
277
|
+
</a>
|
278
|
+
</li>
|
279
|
+
|
384
280
|
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
385
287
|
|
386
288
|
|
387
|
-
|
388
|
-
|
389
|
-
<input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
<label class="md-nav__link md-nav__link--active" for="__toc">
|
395
|
-
Options, Parameters, and Arguments
|
396
|
-
</label>
|
397
|
-
|
398
|
-
<a href="./" title="Options, Parameters, and Arguments" class="md-nav__link md-nav__link--active">
|
399
|
-
Options, Parameters, and Arguments
|
400
|
-
</a>
|
289
|
+
|
290
|
+
|
401
291
|
|
402
|
-
|
403
|
-
<
|
292
|
+
<li data-nav-id="/rbcli/advanced/distributed_state_locking/" title="Distributed State and Locking" class="dd-item ">
|
293
|
+
<a href="/rbcli/advanced/distributed_state_locking/">
|
294
|
+
Distributed State and Locking
|
295
|
+
|
296
|
+
</a>
|
297
|
+
</li>
|
298
|
+
|
404
299
|
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
405
309
|
|
406
310
|
|
311
|
+
<li data-nav-id="/rbcli/advanced/hooks/" title="Execution Hooks" class="dd-item ">
|
312
|
+
<a href="/rbcli/advanced/hooks/">
|
313
|
+
Execution Hooks
|
314
|
+
|
315
|
+
</a>
|
316
|
+
</li>
|
317
|
+
|
407
318
|
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
408
328
|
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
<a href="#command-line-structure" title="Command Line Structure" class="md-nav__link">
|
414
|
-
Command Line Structure
|
415
|
-
</a>
|
416
|
-
|
417
|
-
</li>
|
418
|
-
|
419
|
-
<li class="md-nav__item">
|
420
|
-
<a href="#options" title="Options" class="md-nav__link">
|
421
|
-
Options
|
422
|
-
</a>
|
423
|
-
|
424
|
-
</li>
|
425
|
-
|
426
|
-
<li class="md-nav__item">
|
427
|
-
<a href="#parameters" title="Parameters" class="md-nav__link">
|
428
|
-
Parameters
|
429
|
-
</a>
|
430
|
-
|
431
|
-
<nav class="md-nav">
|
432
|
-
<ul class="md-nav__list">
|
433
|
-
|
434
|
-
<li class="md-nav__item">
|
435
|
-
<a href="#user-prompting" title="User Prompting" class="md-nav__link">
|
436
|
-
User Prompting
|
437
|
-
</a>
|
438
|
-
|
439
|
-
</li>
|
329
|
+
|
330
|
+
<li data-nav-id="/rbcli/advanced/interactive_commands/" title="Interactive Commands" class="dd-item ">
|
331
|
+
<a href="/rbcli/advanced/interactive_commands/">
|
332
|
+
Interactive Commands
|
440
333
|
|
441
|
-
|
442
|
-
</
|
443
|
-
|
444
|
-
</li>
|
445
|
-
|
446
|
-
<li class="md-nav__item">
|
447
|
-
<a href="#arguments" title="Arguments" class="md-nav__link">
|
448
|
-
Arguments
|
449
|
-
</a>
|
450
|
-
|
451
|
-
</li>
|
452
|
-
|
453
|
-
<li class="md-nav__item">
|
454
|
-
<a href="#simplified-reference-tldr" title="Simplified Reference (TLDR)" class="md-nav__link">
|
455
|
-
Simplified Reference (TLDR)
|
456
|
-
</a>
|
457
|
-
|
458
|
-
</li>
|
459
|
-
|
460
|
-
<li class="md-nav__item">
|
461
|
-
<a href="#next-steps" title="Next Steps" class="md-nav__link">
|
462
|
-
Next Steps
|
463
|
-
</a>
|
464
|
-
|
465
|
-
</li>
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
</ul>
|
334
|
+
</a>
|
335
|
+
</li>
|
336
|
+
|
472
337
|
|
473
|
-
|
474
|
-
|
475
|
-
</li>
|
338
|
+
|
476
339
|
|
477
|
-
|
478
|
-
|
479
|
-
|
340
|
+
|
480
341
|
|
342
|
+
|
343
|
+
|
481
344
|
|
482
345
|
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
<li data-nav-id="/rbcli/advanced/logging/" title="Logging" class="dd-item ">
|
350
|
+
<a href="/rbcli/advanced/logging/">
|
351
|
+
Logging
|
489
352
|
|
490
|
-
|
491
|
-
</
|
492
|
-
|
353
|
+
</a>
|
354
|
+
</li>
|
355
|
+
|
356
|
+
|
357
|
+
|
493
358
|
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
498
363
|
|
499
364
|
|
500
|
-
|
501
|
-
|
502
|
-
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
|
365
|
+
|
366
|
+
|
503
367
|
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
<nav class="md-nav" data-md-component="collapsible" data-md-level="1">
|
508
|
-
<label class="md-nav__title" for="nav-4">
|
509
|
-
Advanced Features
|
510
|
-
</label>
|
511
|
-
<ul class="md-nav__list" data-md-scrollfix>
|
368
|
+
<li data-nav-id="/rbcli/advanced/remote_execution/" title="Remote Execution" class="dd-item ">
|
369
|
+
<a href="/rbcli/advanced/remote_execution/">
|
370
|
+
Remote Execution
|
512
371
|
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
372
|
+
</a>
|
373
|
+
</li>
|
374
|
+
|
375
|
+
|
376
|
+
|
517
377
|
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
518
382
|
|
519
|
-
<li class="md-nav__item">
|
520
|
-
<a href="../../advanced/command_types/" title="Command Types" class="md-nav__link">
|
521
|
-
Command Types
|
522
|
-
</a>
|
523
|
-
</li>
|
524
383
|
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
<li data-nav-id="/rbcli/advanced/state_storage/" title="State Storage" class="dd-item ">
|
388
|
+
<a href="/rbcli/advanced/state_storage/">
|
389
|
+
State Storage
|
525
390
|
|
526
|
-
|
527
|
-
|
528
|
-
|
391
|
+
</a>
|
392
|
+
</li>
|
393
|
+
|
394
|
+
|
395
|
+
|
529
396
|
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
530
401
|
|
531
|
-
<li class="md-nav__item">
|
532
|
-
<a href="../../advanced/user_config_files/" title="User Config Files" class="md-nav__link">
|
533
|
-
User Config Files
|
534
|
-
</a>
|
535
|
-
</li>
|
536
402
|
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
<li data-nav-id="/rbcli/advanced/user_config_files/" title="User Configuration Files" class="dd-item ">
|
407
|
+
<a href="/rbcli/advanced/user_config_files/">
|
408
|
+
User Configuration Files
|
537
409
|
|
410
|
+
</a>
|
411
|
+
</li>
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
538
417
|
|
418
|
+
|
419
|
+
</ul>
|
420
|
+
|
421
|
+
</li>
|
422
|
+
|
423
|
+
|
424
|
+
|
539
425
|
|
540
426
|
|
541
427
|
|
542
428
|
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
</li>
|
548
|
-
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
<li data-nav-id="/rbcli/development/" title="Development" class="dd-item
|
549
433
|
|
434
|
+
|
435
|
+
|
436
|
+
">
|
437
|
+
<a href="/rbcli/development/">
|
438
|
+
Development
|
550
439
|
|
440
|
+
</a>
|
441
|
+
|
442
|
+
|
443
|
+
<ul>
|
551
444
|
|
552
445
|
|
553
|
-
|
554
|
-
|
555
|
-
<li class="md-nav__item">
|
556
|
-
<a href="../../advanced/logging/" title="Logging" class="md-nav__link">
|
557
|
-
Logging
|
558
|
-
</a>
|
559
|
-
</li>
|
560
|
-
|
561
|
-
|
562
446
|
|
563
447
|
|
448
|
+
|
564
449
|
|
450
|
+
|
451
|
+
|
565
452
|
|
566
453
|
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
<li data-nav-id="/rbcli/development/contributing/" title="Contribution Guide" class="dd-item ">
|
458
|
+
<a href="/rbcli/development/contributing/">
|
459
|
+
Contribution Guide
|
573
460
|
|
574
|
-
|
575
|
-
|
576
|
-
|
461
|
+
</a>
|
462
|
+
</li>
|
463
|
+
|
464
|
+
|
465
|
+
|
577
466
|
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
578
471
|
|
579
|
-
<li class="md-nav__item">
|
580
|
-
<a href="../../advanced/state_storage/" title="State Storage" class="md-nav__link">
|
581
|
-
State Storage
|
582
|
-
</a>
|
583
|
-
</li>
|
584
472
|
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
<li data-nav-id="/rbcli/development/license/" title="License Info" class="dd-item ">
|
477
|
+
<a href="/rbcli/development/license/">
|
478
|
+
License Info
|
585
479
|
|
586
|
-
|
587
|
-
|
588
|
-
|
480
|
+
</a>
|
481
|
+
</li>
|
482
|
+
|
483
|
+
|
484
|
+
|
589
485
|
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
590
490
|
|
591
|
-
<li class="md-nav__item">
|
592
|
-
<a href="../../advanced/distributed_state_locking/" title="Distributed State Locking" class="md-nav__link">
|
593
|
-
Distributed State Locking
|
594
|
-
</a>
|
595
|
-
</li>
|
596
491
|
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
<li data-nav-id="/rbcli/development/code_of_conduct/" title="Code of Conduct" class="dd-item ">
|
496
|
+
<a href="/rbcli/development/code_of_conduct/">
|
497
|
+
Code of Conduct
|
597
498
|
|
598
|
-
|
599
|
-
|
600
|
-
|
499
|
+
</a>
|
500
|
+
</li>
|
501
|
+
|
502
|
+
|
503
|
+
|
601
504
|
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
|
602
509
|
|
603
|
-
<li class="md-nav__item">
|
604
|
-
<a href="../../advanced/remote_execution/" title="Remote Execution" class="md-nav__link">
|
605
|
-
Remote Execution
|
606
|
-
</a>
|
607
|
-
</li>
|
608
510
|
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
<li data-nav-id="/rbcli/development/changelog/" title="Changelog" class="dd-item ">
|
515
|
+
<a href="/rbcli/development/changelog/">
|
516
|
+
Changelog
|
609
517
|
|
518
|
+
</a>
|
519
|
+
</li>
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
|
610
525
|
|
526
|
+
|
527
|
+
</ul>
|
528
|
+
|
529
|
+
</li>
|
530
|
+
|
531
|
+
|
532
|
+
|
611
533
|
|
612
534
|
|
613
535
|
|
614
536
|
|
615
|
-
|
616
|
-
|
617
|
-
Interactive Commands
|
618
|
-
</a>
|
619
|
-
</li>
|
620
|
-
|
621
|
-
|
622
|
-
</ul>
|
623
|
-
</nav>
|
624
|
-
</li>
|
625
|
-
|
537
|
+
|
538
|
+
|
626
539
|
|
540
|
+
<li data-nav-id="/rbcli/whoami/" title="My Letter To You" class="dd-item
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
">
|
545
|
+
<a href="/rbcli/whoami/">
|
546
|
+
My Letter To You
|
547
|
+
|
548
|
+
</a>
|
627
549
|
|
628
|
-
|
629
|
-
|
550
|
+
|
551
|
+
</li>
|
552
|
+
|
553
|
+
|
630
554
|
|
555
|
+
|
556
|
+
|
557
|
+
</ul>
|
631
558
|
|
632
|
-
<li class="md-nav__item md-nav__item--nested">
|
633
559
|
|
634
|
-
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
|
635
560
|
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
<nav class="md-nav" data-md-component="collapsible" data-md-level="1">
|
640
|
-
<label class="md-nav__title" for="nav-5">
|
641
|
-
Development
|
642
|
-
</label>
|
643
|
-
<ul class="md-nav__list" data-md-scrollfix>
|
644
|
-
|
645
|
-
|
561
|
+
<section id="shortcuts">
|
562
|
+
<h3>More</h3>
|
563
|
+
<ul>
|
646
564
|
|
565
|
+
<li>
|
566
|
+
<a class="padding" href="https://github.com/akhoury6/rbcli"><i class='fab fa-github'></i> Github repo</a>
|
567
|
+
</li>
|
647
568
|
|
569
|
+
<li>
|
570
|
+
<a class="padding" href="https://rubygems.org/gems/rbcli"><i class='far fa-gem'></i> Rubygems</a>
|
571
|
+
</li>
|
648
572
|
|
573
|
+
</ul>
|
574
|
+
</section>
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
<section id="footer">
|
579
|
+
<p>Built with <a href="https://github.com/matcornic/hugo-theme-learn"><i class="fas fa-heart"></i></a> from <a href="https://getgrav.org">Grav</a> and <a href="https://gohugo.io/">Hugo</a></p>
|
649
580
|
|
581
|
+
</section>
|
582
|
+
</div>
|
583
|
+
</nav>
|
650
584
|
|
651
|
-
<li class="md-nav__item">
|
652
|
-
<a href="../../development/contributing/" title="Contribution Guide" class="md-nav__link">
|
653
|
-
Contribution Guide
|
654
|
-
</a>
|
655
|
-
</li>
|
656
585
|
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
586
|
|
662
587
|
|
663
|
-
<li class="md-nav__item">
|
664
|
-
<a href="../../development/license/" title="License Info" class="md-nav__link">
|
665
|
-
License Info
|
666
|
-
</a>
|
667
|
-
</li>
|
668
588
|
|
669
|
-
|
589
|
+
<section id="body">
|
590
|
+
<div id="overlay"></div>
|
591
|
+
<div class="padding highlightable">
|
592
|
+
|
593
|
+
<div>
|
594
|
+
<div id="top-bar">
|
595
|
+
|
596
|
+
|
597
|
+
<div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
|
598
|
+
<span id="sidebar-toggle-span">
|
599
|
+
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">
|
600
|
+
<i class="fas fa-bars"></i>
|
601
|
+
</a>
|
602
|
+
</span>
|
603
|
+
|
604
|
+
<span id="toc-menu"><i class="fas fa-list-alt"></i></span>
|
605
|
+
|
606
|
+
<span class="links">
|
607
|
+
|
608
|
+
|
609
|
+
|
670
610
|
|
671
611
|
|
612
|
+
|
613
|
+
|
672
614
|
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
<a href="../../development/code_of_conduct/" title="Code of Conduct" class="md-nav__link">
|
677
|
-
Code of Conduct
|
678
|
-
</a>
|
679
|
-
</li>
|
680
|
-
|
681
|
-
|
615
|
+
|
616
|
+
|
617
|
+
|
682
618
|
|
683
619
|
|
620
|
+
<a href='/rbcli/'></a> > <a href='/rbcli/tutorial/'>Tutorial</a> > Options, Parameters, and Arguments
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
|
684
625
|
|
685
|
-
|
686
|
-
|
687
|
-
<li class="md-nav__item">
|
688
|
-
<a href="../../imported/changelog/" title="Changelog" class="md-nav__link">
|
689
|
-
Changelog
|
690
|
-
</a>
|
691
|
-
</li>
|
692
|
-
|
693
626
|
|
694
|
-
|
695
|
-
|
696
|
-
</li>
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
<li class="md-nav__item">
|
705
|
-
<a href="../../whoami/" title="whoami" class="md-nav__link">
|
706
|
-
whoami
|
707
|
-
</a>
|
708
|
-
</li>
|
709
|
-
|
710
|
-
|
711
|
-
</ul>
|
712
|
-
</nav>
|
713
|
-
</div>
|
627
|
+
|
628
|
+
</span>
|
714
629
|
</div>
|
630
|
+
|
631
|
+
<div class="progress">
|
632
|
+
<div class="wrapper">
|
633
|
+
<nav id="TableOfContents">
|
634
|
+
<ul>
|
635
|
+
<li>
|
636
|
+
<ul>
|
637
|
+
<li><a href="#command-line-structure">Command Line Structure</a></li>
|
638
|
+
<li><a href="#options">Options</a></li>
|
639
|
+
<li><a href="#parameters">Parameters</a>
|
640
|
+
<ul>
|
641
|
+
<li><a href="#user-prompting">User Prompting</a></li>
|
642
|
+
</ul></li>
|
643
|
+
<li><a href="#arguments">Arguments</a></li>
|
644
|
+
<li><a href="#simplified-reference-tldr">Simplified Reference (TLDR)</a></li>
|
645
|
+
<li><a href="#next-steps">Next Steps</a></li>
|
646
|
+
</ul></li>
|
647
|
+
</ul>
|
648
|
+
</nav>
|
649
|
+
</div>
|
650
|
+
</div>
|
651
|
+
|
652
|
+
|
715
653
|
</div>
|
654
|
+
</div>
|
716
655
|
|
717
|
-
|
718
|
-
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
|
719
|
-
<div class="md-sidebar__scrollwrap">
|
720
|
-
<div class="md-sidebar__inner">
|
721
|
-
|
722
|
-
<nav class="md-nav md-nav--secondary">
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
<label class="md-nav__title" for="__toc">Table of contents</label>
|
729
|
-
<ul class="md-nav__list" data-md-scrollfix>
|
730
|
-
|
731
|
-
<li class="md-nav__item">
|
732
|
-
<a href="#command-line-structure" title="Command Line Structure" class="md-nav__link">
|
733
|
-
Command Line Structure
|
734
|
-
</a>
|
735
|
-
|
736
|
-
</li>
|
737
|
-
|
738
|
-
<li class="md-nav__item">
|
739
|
-
<a href="#options" title="Options" class="md-nav__link">
|
740
|
-
Options
|
741
|
-
</a>
|
742
|
-
|
743
|
-
</li>
|
744
|
-
|
745
|
-
<li class="md-nav__item">
|
746
|
-
<a href="#parameters" title="Parameters" class="md-nav__link">
|
747
|
-
Parameters
|
748
|
-
</a>
|
749
|
-
|
750
|
-
<nav class="md-nav">
|
751
|
-
<ul class="md-nav__list">
|
656
|
+
<div id="head-tags">
|
752
657
|
|
753
|
-
|
754
|
-
<a href="#user-prompting" title="User Prompting" class="md-nav__link">
|
755
|
-
User Prompting
|
756
|
-
</a>
|
757
|
-
|
758
|
-
</li>
|
658
|
+
</div>
|
759
659
|
|
760
|
-
|
761
|
-
</nav>
|
762
|
-
|
763
|
-
</li>
|
764
|
-
|
765
|
-
<li class="md-nav__item">
|
766
|
-
<a href="#arguments" title="Arguments" class="md-nav__link">
|
767
|
-
Arguments
|
768
|
-
</a>
|
769
|
-
|
770
|
-
</li>
|
771
|
-
|
772
|
-
<li class="md-nav__item">
|
773
|
-
<a href="#simplified-reference-tldr" title="Simplified Reference (TLDR)" class="md-nav__link">
|
774
|
-
Simplified Reference (TLDR)
|
775
|
-
</a>
|
776
|
-
|
777
|
-
</li>
|
778
|
-
|
779
|
-
<li class="md-nav__item">
|
780
|
-
<a href="#next-steps" title="Next Steps" class="md-nav__link">
|
781
|
-
Next Steps
|
782
|
-
</a>
|
783
|
-
|
784
|
-
</li>
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
</ul>
|
791
|
-
|
792
|
-
</nav>
|
793
|
-
</div>
|
794
|
-
</div>
|
795
|
-
</div>
|
796
|
-
|
660
|
+
<div id="body-inner">
|
797
661
|
|
798
|
-
|
799
|
-
<article class="md-content__inner md-typeset">
|
662
|
+
<h1>
|
800
663
|
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
664
|
+
Options, Parameters, and Arguments
|
665
|
+
</h1>
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
<p>If you’re already an experienced coder, you can jump to the last section of this document, the <a href="#simplified-reference-tldr">Simplified Reference (TLDR)</a></p>
|
675
|
+
|
805
676
|
<h2 id="command-line-structure">Command Line Structure</h2>
|
677
|
+
|
806
678
|
<p>In the previous section, you saw two parts of the RBCli command line structure - the executable followed by the command. However, RBCli is capable of more complex interaction. The structure is as follows:</p>
|
679
|
+
|
807
680
|
<pre><code>toolname [options] command [parameters] argument1 argument2...
|
808
681
|
</code></pre>
|
809
682
|
|
810
683
|
<ul>
|
811
|
-
<li><strong>Options</strong> are command line parameters such as <code>-f</code>, or <code>--force</code>. These are available globally to every command. You can create your own, though several are already built-in and reserved for RBCli
|
684
|
+
<li><strong>Options</strong> are command line parameters such as <code>-f</code>, or <code>--force</code>. These are available globally to every command. You can create your own, though several are already built-in and reserved for RBCli:
|
685
|
+
|
686
|
+
<ul>
|
812
687
|
<li><code>--config-file=<filename></code> allows specifying a config file location manually.</li>
|
813
|
-
<li><code>--generate-config</code> generates a config file for the user by writing out the defaults to a YAML file. This option will only appear if a config file has been set. The location is configurable, with more on that in the documentation on <a href="
|
688
|
+
<li><code>--generate-config</code> generates a config file for the user by writing out the defaults to a YAML file. This option will only appear if a config file has been set. The location is configurable, with more on that in the documentation on <a href="/rbcli/advanced/user_config_files/">User Config Files</a>).</li>
|
814
689
|
<li><code>-v / --version</code> shows the version.</li>
|
815
690
|
<li><code>-h / --help</code> shows the help.</li>
|
816
|
-
</ul>
|
817
|
-
</li>
|
691
|
+
</ul></li>
|
818
692
|
<li><strong>Command</strong> represents the subcommands that you will create, such as <code>list</code>, <code>test</code>, or <code>apply</code>.</li>
|
819
693
|
<li><strong>Parameters</strong> are the same as options, but only apply to the specific subcommand being executed. In this case only the <code>-h / --help</code> parameter is provided automatically.</li>
|
820
|
-
<li><strong>Arguments</strong> are strings that don
|
694
|
+
<li><strong>Arguments</strong> are strings that don’t begin with a ‘-’, and are passed to the command’s code as an array. These can be used as subcommands or additional parameters for your command.</li>
|
821
695
|
</ul>
|
696
|
+
|
822
697
|
<p>So a valid command could look something like these:</p>
|
823
|
-
|
698
|
+
|
699
|
+
<pre><code class="language-shell">mytool -n load --filename=foo.txt
|
824
700
|
mytool parse foo.txt
|
825
701
|
mytool show -l
|
826
702
|
</code></pre>
|
827
703
|
|
828
704
|
<p>Note that all options and parameters will have both a short and long version of the parameter available for use.</p>
|
829
|
-
|
705
|
+
|
706
|
+
<p>So let’s take a look at how we define them.</p>
|
707
|
+
|
830
708
|
<h2 id="options">Options</h2>
|
831
|
-
|
832
|
-
<
|
709
|
+
|
710
|
+
<p>You can find the options declarations under <code>application/options.rb</code>. You’ll see the example in the code:</p>
|
711
|
+
|
712
|
+
<pre><code class="language-ruby">option :name, 'Give me your name', short: 'n', type: :string, default: 'Jack', required: false, permitted: ['Jack', 'Jill']
|
833
713
|
</code></pre>
|
834
714
|
|
835
|
-
<p>This won
|
836
|
-
|
715
|
+
<p>This won’t do for our tool, so let’s change it. Remember that these options will be applicable to all of our commands, so lets make it something appropriate:</p>
|
716
|
+
|
717
|
+
<pre><code class="language-ruby">option :color, 'Enable color output', short: 'c', type: :boolean, default: false
|
837
718
|
</code></pre>
|
838
719
|
|
839
|
-
<p>So now, let
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
720
|
+
<p>So now, let’s take advantage of this flag in our <code>list</code> command. Let’s change our block to:</p>
|
721
|
+
|
722
|
+
<pre><code class="language-ruby"> action do |params, args, global_opts, config|
|
723
|
+
Dir.glob "./*" do |filename|
|
724
|
+
outname = filename.split('/')[1]
|
725
|
+
outname += '/' if File.directory? filename
|
726
|
+
|
727
|
+
# We change the color based on the kind of file shown
|
728
|
+
if global_opts[:color]
|
729
|
+
if File.directory? filename
|
730
|
+
outname = outname.light_blue
|
731
|
+
elsif File.executable? filename
|
732
|
+
outname = outname.light_green
|
733
|
+
end
|
734
|
+
end
|
735
|
+
|
736
|
+
puts outname
|
737
|
+
end
|
738
|
+
end
|
857
739
|
</code></pre>
|
858
740
|
|
859
|
-
<p>Notice how we referenced the value by using <code>global_opts[:color]</code>. It
|
860
|
-
|
741
|
+
<p>Notice how we referenced the value by using <code>global_opts[:color]</code>. It’s that simple. To see it in action, run:</p>
|
742
|
+
|
743
|
+
<pre><code class="language-bash">mytool -c list
|
861
744
|
</code></pre>
|
862
745
|
|
863
746
|
<h2 id="parameters">Parameters</h2>
|
864
|
-
|
865
|
-
<
|
747
|
+
|
748
|
+
<p>Parameters work the same way as options, but they are localized to only the selected command. They are declared - as you probably guessed by now - in the command’s class. So let’s add the following lines to our list command within the class declaration:</p>
|
749
|
+
|
750
|
+
<pre><code class="language-ruby">parameter :sort, 'Sort output alphabetically', type: :boolean, default: false
|
866
751
|
parameter :all, 'Show hidden files', type: :boolean, default: false
|
867
752
|
parameter :directoriesfirst, 'Show directories on top', type: :boolean, default: false
|
868
753
|
</code></pre>
|
869
754
|
|
870
|
-
<p>And let
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
755
|
+
<p>And let’s modify our action block to utilize them:</p>
|
756
|
+
|
757
|
+
<pre><code class="language-ruby"> action do |params, args, global_opts, config|
|
758
|
+
filelist = []
|
759
|
+
|
760
|
+
# We include dotfiles if specified
|
761
|
+
include_dotfiles = (params[:all]) ? File::FNM_DOTMATCH : 0
|
762
|
+
|
763
|
+
# We store a list of the files in an array, including dotfiles if specified
|
764
|
+
Dir.glob "./*", include_dotfiles do |filename|
|
765
|
+
outname = filename.split('/')[1]
|
766
|
+
outname += '/' if File.directory? filename
|
767
|
+
filelist.append outname
|
768
|
+
end
|
769
|
+
|
770
|
+
# Sort alphabetically if specified
|
771
|
+
filelist.sort! if params[:sort]
|
772
|
+
|
773
|
+
# Put directories first if specified
|
774
|
+
if params[:directoriesfirst]
|
775
|
+
files = []; dirs = []
|
776
|
+
filelist.each do |filename|
|
777
|
+
if File.directory? filename
|
778
|
+
dirs.append(filename)
|
779
|
+
else
|
780
|
+
files.append(filename)
|
781
|
+
end
|
782
|
+
end
|
783
|
+
filelist = dirs + files
|
784
|
+
end
|
785
|
+
|
786
|
+
# Apply color. We do this at the end now because color codes can alter the sorting.
|
787
|
+
filelist.map! do |filename|
|
788
|
+
if File.directory? filename
|
789
|
+
filename.light_blue
|
790
|
+
elsif File.executable? filename
|
791
|
+
filename.light_green
|
792
|
+
else
|
793
|
+
filename
|
794
|
+
end
|
795
|
+
end if global_opts[:color]
|
796
|
+
|
797
|
+
puts filelist
|
798
|
+
end
|
913
799
|
</code></pre>
|
914
800
|
|
915
801
|
<p>You should be able to run it now:</p>
|
916
|
-
|
802
|
+
|
803
|
+
<pre><code class="language-bash">mytool -c list -asd
|
917
804
|
</code></pre>
|
918
805
|
|
919
806
|
<p>Note how the parameters come after the <code>list</code> command in the syntax above. As you create more commands, each will have its own unique set of parameters, while the options remain <em>before</em> the command and are available to all of them.</p>
|
807
|
+
|
920
808
|
<h3 id="user-prompting">User Prompting</h3>
|
921
|
-
|
922
|
-
<
|
809
|
+
|
810
|
+
<p>There is an additional option when declaring parameters to prompt the user for a value if not entered on the command line. This can be done with the <code>prompt:</code> keyword. Let’s change one of our parameters to utilize it:</p>
|
811
|
+
|
812
|
+
<pre><code class="language-ruby">parameter :sort, 'Sort output alphabetically', type: :boolean, default: false, prompt: "Sort output alphabetically?"
|
923
813
|
</code></pre>
|
924
814
|
|
925
|
-
<p>Now, let
|
926
|
-
|
815
|
+
<p>Now, let’s run the tool while omitting the <code>--sort</code> parameter, as such:</p>
|
816
|
+
|
817
|
+
<pre><code class="language-bash">mytool -c list -ad
|
927
818
|
</code></pre>
|
928
819
|
|
929
820
|
<p>This should give you the prompt:</p>
|
821
|
+
|
930
822
|
<pre><code>Sort output alphabetically? (y/N):
|
931
823
|
</code></pre>
|
932
824
|
|
933
825
|
<p>Because we set the parameter to default to <code>false</code> the default here is <code>N</code>, which is used if the user hits enter without entering a letter. If the default was set to <code>true</code>, then the <code>Y</code> would be capitalized and be the default.</p>
|
934
|
-
|
826
|
+
|
827
|
+
<p>For more information, see the documentation on <a href="/rbcli/advanced/interactive_commands/">Interactive Commands</a>.</p>
|
828
|
+
|
935
829
|
<h2 id="arguments">Arguments</h2>
|
936
|
-
|
937
|
-
<p>
|
938
|
-
|
939
|
-
|
940
|
-
|
830
|
+
|
831
|
+
<p>Lastly on the command line, there are arguments. Arguments are simply strings without the <code>-</code> character in front, and automatically get passed into an array in your applicaiton. Let’s take a look at how we can use them.</p>
|
832
|
+
|
833
|
+
<p>Unlike options and parameters, arguments require no setup. So let’s assume that we want any arguments passed to the <code>list</code> command to be filenames that you want to display, and that you can pass multiple ones. Since arguments aren’t listed automatically by the help function, this is a good example of what to put in your usage text. Let’s take a look at what our class looks like now:</p>
|
834
|
+
|
835
|
+
<pre><code class="language-ruby">class List < Rbcli::Command
|
836
|
+
description %q{List files in current directory}
|
837
|
+
usage <<-EOF
|
941
838
|
To list only specific files, you can enter filenames as arguments
|
942
839
|
|
943
|
-
|
840
|
+
mytool list filename1 filename2...
|
944
841
|
EOF
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
842
|
+
parameter :sort, 'Sort output alphabetically', type: :boolean, default: false
|
843
|
+
parameter :all, 'Show hidden files', type: :boolean, default: false
|
844
|
+
parameter :directoriesfirst, 'Show directories on top', type: :boolean, default: false
|
845
|
+
|
846
|
+
action do |params, args, global_opts, config|
|
847
|
+
filelist = []
|
848
|
+
|
849
|
+
# We include dotfiles if specified
|
850
|
+
include_dotfiles = (params[:all]) ? File::FNM_DOTMATCH : 0
|
851
|
+
|
852
|
+
# We store a list of the files in an array, including dotfiles if specified
|
853
|
+
Dir.glob "./*", include_dotfiles do |filename|
|
854
|
+
outname = filename.split('/')[1]
|
855
|
+
next unless args.include? outname if args.length > 0
|
856
|
+
outname += '/' if File.directory? filename
|
857
|
+
filelist.append outname
|
858
|
+
end
|
859
|
+
|
860
|
+
# Sort alphabetically if specified
|
861
|
+
filelist.sort! if params[:sort]
|
862
|
+
|
863
|
+
# Put directories first if specified
|
864
|
+
if params[:directoriesfirst]
|
865
|
+
files = []; dirs = []
|
866
|
+
filelist.each do |filename|
|
867
|
+
if File.directory? filename
|
868
|
+
dirs.append(filename)
|
869
|
+
else
|
870
|
+
files.append(filename)
|
871
|
+
end
|
872
|
+
end
|
873
|
+
filelist = dirs + files
|
874
|
+
end
|
875
|
+
|
876
|
+
# Apply color. We do this at the end because color codes can alter the sorting
|
877
|
+
filelist.map! do |filename|
|
878
|
+
if File.directory? filename
|
879
|
+
filename.light_blue
|
880
|
+
elsif File.executable? filename
|
881
|
+
filename.light_green
|
882
|
+
else
|
883
|
+
filename
|
884
|
+
end
|
885
|
+
end if global_opts[:color]
|
886
|
+
|
887
|
+
puts filelist
|
888
|
+
end
|
992
889
|
end
|
993
890
|
</code></pre>
|
994
891
|
|
995
892
|
<h2 id="simplified-reference-tldr">Simplified Reference (TLDR)</h2>
|
893
|
+
|
996
894
|
<p>RBCli enforces a CLI structure of:</p>
|
895
|
+
|
997
896
|
<pre><code>toolname [options] command [parameters] argument1 argument2...
|
998
897
|
</code></pre>
|
999
898
|
|
1000
899
|
<p><strong>Options</strong> are declared in <code>application/options.rb</code> file.</p>
|
1001
|
-
|
1002
|
-
<p><strong>
|
900
|
+
|
901
|
+
<p><strong>Parameters</strong> are declared in the respective command’s class declaration.</p>
|
902
|
+
|
903
|
+
<p><strong>Arguments</strong> don’t need to be declared, and are passed in as an array to your commands. It is helpful to describe the argument purpose in the <code>usage</code> text declaration so that the user can see what to do in the help.</p>
|
904
|
+
|
1003
905
|
<p><strong>Options</strong> and <strong>parameters</strong> both use the same format:</p>
|
1004
|
-
|
906
|
+
|
907
|
+
<pre><code class="language-ruby">option :<name>, "<description_string>", short: '<character>', type: <variable_type>, default: <default_value>, permitted: [<array_of_permitted_values]
|
1005
908
|
|
1006
909
|
parameter :<name>, "<description_string>", short: '<character>', type: <variable_type>, default: <default_value>, permitted: [<array_of_permitted_values]
|
1007
910
|
</code></pre>
|
1008
911
|
|
1009
912
|
<ul>
|
1010
|
-
<li><code>name</code
|
913
|
+
<li><code>name</code>
|
914
|
+
|
915
|
+
<ul>
|
1011
916
|
<li>(Required) The long name of the option, as a symbol. This will be represented as <code>--name</code> on the command line</li>
|
1012
|
-
</ul>
|
1013
|
-
|
1014
|
-
|
917
|
+
</ul></li>
|
918
|
+
<li><code>description_string</code>
|
919
|
+
|
920
|
+
<ul>
|
1015
921
|
<li>(Required) A short description of the command that will appear in the help text for the user</li>
|
1016
|
-
</ul>
|
1017
|
-
|
1018
|
-
|
922
|
+
</ul></li>
|
923
|
+
<li><code>type</code>
|
924
|
+
|
925
|
+
<ul>
|
1019
926
|
<li>(Required) The following types are supported: <code>:string</code>, <code>:boolean</code> or <code>:flag</code>, <code>:integer</code>, and <code>:float</code></li>
|
1020
|
-
</ul>
|
1021
|
-
|
1022
|
-
|
1023
|
-
<
|
1024
|
-
</
|
1025
|
-
</li>
|
1026
|
-
<li><code>short</code
|
927
|
+
</ul></li>
|
928
|
+
<li><code>default</code>
|
929
|
+
|
930
|
+
<ul>
|
931
|
+
<li>(Optional) A default value for the option if one isn’t entered (default: nil)</li>
|
932
|
+
</ul></li>
|
933
|
+
<li><code>short</code>
|
934
|
+
|
935
|
+
<ul>
|
1027
936
|
<li>(Optional) A letter that acts as a shortcut for the option. This will allow users to apply the command as <code>-n</code></li>
|
1028
937
|
<li>To not have a short value, set this to :none (default: the first letter of the long name)</li>
|
1029
|
-
</ul>
|
1030
|
-
|
1031
|
-
|
938
|
+
</ul></li>
|
939
|
+
<li><code>required</code>
|
940
|
+
|
941
|
+
<ul>
|
1032
942
|
<li>(Optional) Specify whether the option is required from the user (default: false)</li>
|
1033
|
-
</ul>
|
1034
|
-
|
1035
|
-
|
943
|
+
</ul></li>
|
944
|
+
<li><code>permitted</code>
|
945
|
+
|
946
|
+
<ul>
|
1036
947
|
<li>(Optional) An array of whitelisted values for the option (default: nil)</li>
|
948
|
+
</ul></li>
|
1037
949
|
</ul>
|
1038
|
-
|
1039
|
-
</ul>
|
950
|
+
|
1040
951
|
<h2 id="next-steps">Next Steps</h2>
|
1041
|
-
|
952
|
+
|
953
|
+
<p>Next, we’re going to take a quick look at how to publish and distribute your application, both publicly and within your organization.</p>
|
954
|
+
|
955
|
+
|
956
|
+
<footer class=" footline" >
|
957
|
+
|
958
|
+
</footer>
|
959
|
+
|
960
|
+
|
961
|
+
|
962
|
+
</div>
|
963
|
+
|
964
|
+
|
965
|
+
</div>
|
966
|
+
|
967
|
+
<div id="navigation">
|
968
|
+
|
969
|
+
|
970
|
+
|
971
|
+
|
972
|
+
|
973
|
+
|
1042
974
|
|
1043
|
-
|
975
|
+
|
976
|
+
|
1044
977
|
|
1045
|
-
|
1046
|
-
|
1047
978
|
|
1048
979
|
|
980
|
+
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
|
987
|
+
|
988
|
+
|
989
|
+
|
990
|
+
|
991
|
+
|
992
|
+
|
993
|
+
|
994
|
+
|
995
|
+
|
996
|
+
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
|
1049
1001
|
|
1050
|
-
|
1051
|
-
|
1052
|
-
</div>
|
1053
|
-
</div>
|
1054
|
-
</main>
|
1055
|
-
|
1002
|
+
|
1003
|
+
|
1056
1004
|
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1005
|
+
|
1006
|
+
|
1007
|
+
|
1008
|
+
|
1009
|
+
|
1010
|
+
|
1011
|
+
|
1012
|
+
|
1013
|
+
|
1014
|
+
|
1015
|
+
|
1016
|
+
|
1017
|
+
|
1018
|
+
|
1019
|
+
|
1020
|
+
|
1021
|
+
|
1022
|
+
|
1023
|
+
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
|
1028
|
+
|
1029
|
+
|
1030
|
+
|
1031
|
+
|
1032
|
+
|
1033
|
+
|
1034
|
+
|
1035
|
+
|
1036
|
+
|
1061
1037
|
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1038
|
+
|
1039
|
+
|
1040
|
+
|
1041
|
+
|
1042
|
+
|
1043
|
+
|
1044
|
+
|
1045
|
+
|
1046
|
+
|
1047
|
+
|
1048
|
+
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1075
1053
|
|
1054
|
+
|
1055
|
+
|
1056
|
+
|
1057
|
+
|
1058
|
+
|
1059
|
+
|
1060
|
+
|
1061
|
+
|
1062
|
+
|
1063
|
+
|
1064
|
+
|
1065
|
+
|
1066
|
+
|
1067
|
+
|
1068
|
+
|
1076
1069
|
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1070
|
+
|
1071
|
+
|
1072
|
+
|
1073
|
+
|
1074
|
+
|
1075
|
+
|
1076
|
+
|
1077
|
+
|
1078
|
+
|
1079
|
+
|
1080
|
+
|
1081
|
+
|
1082
|
+
|
1083
|
+
|
1084
|
+
|
1085
|
+
|
1090
1086
|
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1087
|
+
|
1088
|
+
|
1089
|
+
|
1090
|
+
|
1091
|
+
|
1092
|
+
|
1093
|
+
|
1094
|
+
|
1095
|
+
|
1096
|
+
|
1097
|
+
|
1098
|
+
|
1099
|
+
|
1100
|
+
|
1101
|
+
|
1102
|
+
|
1103
|
+
|
1104
|
+
|
1109
1105
|
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1109
|
+
|
1110
|
+
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
1120
|
+
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
|
1127
|
+
|
1128
|
+
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
1132
|
+
|
1133
|
+
|
1134
|
+
|
1135
|
+
|
1136
|
+
|
1137
|
+
|
1138
|
+
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
1142
|
+
|
1143
|
+
|
1144
|
+
|
1145
|
+
|
1146
|
+
|
1147
|
+
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
1151
|
+
|
1152
|
+
|
1153
|
+
|
1154
|
+
|
1155
|
+
|
1156
|
+
|
1157
|
+
|
1158
|
+
|
1159
|
+
|
1160
|
+
|
1161
|
+
|
1162
|
+
|
1163
|
+
|
1164
|
+
|
1165
|
+
|
1166
|
+
|
1167
|
+
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
1171
|
+
|
1172
|
+
|
1173
|
+
|
1174
|
+
|
1175
|
+
|
1176
|
+
|
1177
|
+
|
1178
|
+
|
1179
|
+
|
1180
|
+
|
1181
|
+
|
1182
|
+
|
1183
|
+
|
1184
|
+
|
1185
|
+
|
1186
|
+
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
1190
|
+
|
1191
|
+
|
1192
|
+
|
1193
|
+
|
1194
|
+
|
1195
|
+
|
1196
|
+
|
1197
|
+
|
1198
|
+
|
1199
|
+
|
1200
|
+
|
1201
|
+
|
1202
|
+
|
1203
|
+
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
|
1208
|
+
|
1209
|
+
|
1210
|
+
|
1211
|
+
|
1212
|
+
|
1213
|
+
|
1214
|
+
|
1215
|
+
|
1216
|
+
|
1217
|
+
|
1218
|
+
|
1219
|
+
|
1220
|
+
|
1221
|
+
|
1222
|
+
|
1223
|
+
|
1224
|
+
|
1225
|
+
|
1226
|
+
|
1227
|
+
|
1228
|
+
|
1229
|
+
|
1230
|
+
|
1231
|
+
|
1232
|
+
|
1233
|
+
|
1234
|
+
|
1235
|
+
|
1236
|
+
|
1237
|
+
|
1238
|
+
|
1239
|
+
|
1240
|
+
|
1241
|
+
|
1242
|
+
|
1243
|
+
|
1244
|
+
|
1245
|
+
|
1246
|
+
|
1247
|
+
|
1248
|
+
|
1249
|
+
|
1250
|
+
|
1251
|
+
|
1252
|
+
|
1253
|
+
|
1254
|
+
|
1255
|
+
|
1256
|
+
|
1257
|
+
|
1258
|
+
|
1259
|
+
|
1260
|
+
|
1261
|
+
|
1262
|
+
|
1263
|
+
|
1264
|
+
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
1268
|
+
|
1269
|
+
|
1270
|
+
|
1271
|
+
|
1272
|
+
|
1273
|
+
|
1274
|
+
|
1275
|
+
|
1276
|
+
|
1277
|
+
|
1278
|
+
|
1279
|
+
|
1280
|
+
|
1281
|
+
|
1282
|
+
|
1283
|
+
|
1284
|
+
|
1285
|
+
|
1286
|
+
|
1287
|
+
|
1288
|
+
|
1289
|
+
|
1290
|
+
|
1291
|
+
|
1292
|
+
|
1293
|
+
|
1294
|
+
|
1295
|
+
|
1296
|
+
|
1297
|
+
|
1298
|
+
|
1299
|
+
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
1303
|
+
|
1304
|
+
|
1305
|
+
|
1306
|
+
|
1307
|
+
|
1308
|
+
|
1309
|
+
|
1310
|
+
|
1311
|
+
|
1312
|
+
|
1313
|
+
|
1314
|
+
|
1315
|
+
|
1316
|
+
|
1317
|
+
|
1318
|
+
|
1319
|
+
|
1320
|
+
|
1321
|
+
|
1322
|
+
|
1323
|
+
|
1324
|
+
|
1325
|
+
|
1326
|
+
|
1327
|
+
|
1328
|
+
|
1329
|
+
|
1330
|
+
|
1331
|
+
|
1332
|
+
|
1333
|
+
|
1334
|
+
|
1335
|
+
|
1336
|
+
|
1337
|
+
|
1338
|
+
|
1339
|
+
|
1340
|
+
|
1341
|
+
|
1342
|
+
|
1343
|
+
|
1344
|
+
|
1345
|
+
|
1346
|
+
|
1347
|
+
|
1348
|
+
|
1349
|
+
|
1350
|
+
|
1351
|
+
|
1352
|
+
|
1353
|
+
|
1354
|
+
|
1355
|
+
|
1356
|
+
|
1357
|
+
|
1358
|
+
|
1359
|
+
|
1360
|
+
|
1361
|
+
|
1362
|
+
|
1363
|
+
|
1364
|
+
|
1365
|
+
|
1366
|
+
|
1367
|
+
|
1368
|
+
|
1369
|
+
|
1370
|
+
|
1371
|
+
|
1372
|
+
|
1373
|
+
|
1374
|
+
|
1375
|
+
<a class="nav nav-prev" href="/rbcli/tutorial/30-your_first_command/" title="Your First Command"> <i class="fa fa-chevron-left"></i></a>
|
1376
|
+
|
1377
|
+
|
1378
|
+
<a class="nav nav-next" href="/rbcli/tutorial/50-publishing/" title="Publishing Your Application" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>
|
1379
|
+
|
1380
|
+
|
1115
1381
|
</div>
|
1382
|
+
|
1383
|
+
</section>
|
1116
1384
|
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1385
|
+
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
|
1386
|
+
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
|
1387
|
+
</div>
|
1388
|
+
<script src="/rbcli/js/clipboard.min.js?1561087612"></script>
|
1389
|
+
<script src="/rbcli/js/perfect-scrollbar.min.js?1561087612"></script>
|
1390
|
+
<script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1561087612"></script>
|
1391
|
+
<script src="/rbcli/js/jquery.sticky.js?1561087612"></script>
|
1392
|
+
<script src="/rbcli/js/featherlight.min.js?1561087612"></script>
|
1393
|
+
<script src="/rbcli/js/html5shiv-printshiv.min.js?1561087612"></script>
|
1394
|
+
<script src="/rbcli/js/highlight.pack.js?1561087612"></script>
|
1395
|
+
<script>hljs.initHighlightingOnLoad();</script>
|
1396
|
+
<script src="/rbcli/js/modernizr.custom-3.6.0.js?1561087612"></script>
|
1397
|
+
<script src="/rbcli/js/learn.js?1561087612"></script>
|
1398
|
+
<script src="/rbcli/js/hugo-learn.js?1561087612"></script>
|
1399
|
+
|
1400
|
+
<link href="/rbcli/mermaid/mermaid.css?1561087612" rel="stylesheet" />
|
1401
|
+
<script src="/rbcli/mermaid/mermaid.js?1561087612"></script>
|
1402
|
+
<script>
|
1403
|
+
mermaid.initialize({ startOnLoad: true });
|
1404
|
+
</script>
|
1124
1405
|
|
1406
|
+
|
1125
1407
|
</body>
|
1126
|
-
</html>
|
1408
|
+
</html>
|
1409
|
+
|