RubyGems Navigation menu

caml 0.1.0

# 🐪 caml > Build CLI apps with YAML `caml` allows you to build command line applications using declarative yaml. `caml` aims to be like `make`, but by using descriptive, declarative yaml. ## Usage Running the command without any arguments displays the commands defined in the `caml.yaml` file: ```sh bin/caml ``` ## Declaring commands `caml` reads a file called `caml.yaml` in the current directory and converts those commands into a unified CLI command. The basic structure is to have a `command`, which has a `desc` and an `execute` for the bash command to execute. ```yaml command: desc: Command description execute: script.sh ``` This yaml will create the following command: ```yaml bin/caml command # Command description ``` And it will run any bash command defined. Arguments may be added under `args` in a nested fashion as displayed below. ```yaml command: args: one: desc: First argument type: string two: desc: Second argument type: string ``` ## Examples ```yaml build: desc: Build our project execute: make clean: desc: Clean our project execute: make clean ``` ```yaml build: desc: Bundle execute: bundle install migrate: desc: Migrate the test database execute: rails db:migrate RAILS_ENV=test test: desc: Run tests execute: rspec ```

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 0.1.0 - November 20, 2021 (7,5 KB)

Development Abhängigkeiten (1):

rspec >= 0

Besitzer:

Pushed by:

Autoren:

  • Ian Johnson

SHA 256-Prüfsumme:

9cb450835bd745d044a322d6b612a1571db17bca2b98ff59ea405990de162584

Downloads insgesamt 1.553

Für diese Version 1.553

Lizenz:

MIT

Erforderliche Ruby-Version: >= 1.9

Links: