caml 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/bin/caml +2 -2
  4. metadata +19 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8112aee1b07f561a5a61568f3d53d7c4bf002de6eb011be5e835490c404cb0f
4
- data.tar.gz: a72ec8bf5815f84abb80b585c6ab0d1d84802b23e91672a47844c16cf2894f46
3
+ metadata.gz: 89fb929361ce5de9959beac6898d64208cc7cffdbb77e8083bca78873955723a
4
+ data.tar.gz: 7b4288ec82d1b423db8bed3c667e61028141f49a5577759da798a24c15280926
5
5
  SHA512:
6
- metadata.gz: 113daadc8195e7ea3667d3ac463455e3e9c2f18ff022f3ee030ce68672c14e4ce022b91e16f479b12a6060c2aa626ab8bf16596af29d8e2cd018a0c4fc4ef9c1
7
- data.tar.gz: d9d5127a760273c578b486b4754e97d24b278e215f9d9edc3a1ac730ec24fc5a9ae6add0525e183c821ed0c65528d955c136360f58ae51668f2fe49025587a92
6
+ metadata.gz: f90dbe11062eac8b849911ab4b16fe9976ecf8b912a61465a759dbfa5899e630766c122aef6635b394dd637fa876bcc26685ae0d7732943278772572445cee08
7
+ data.tar.gz: da0adb379026e5459cef1804dd90c93509d7ab8d27ab8694cfd1d8bc7fd8477dd0957e97abe6c634a785a78b891e522d3f367377030f5593a3b044b56676f015
data/README.md CHANGED
@@ -5,6 +5,14 @@
5
5
  `caml` allows you to build command line applications using declarative yaml.
6
6
  `caml` aims to be like `make`, but by using descriptive, declarative yaml.
7
7
 
8
+ <!-- ## Installation -->
9
+
10
+ <!-- TODO -->
11
+
12
+ <!-- ```sh -->
13
+ <!-- gem install caml -->
14
+ <!-- ``` -->
15
+
8
16
  ## Usage
9
17
 
10
18
  Running the command without any arguments displays the commands defined in the `caml.yaml` file:
data/bin/caml CHANGED
@@ -23,8 +23,8 @@ class CamlCli < Thor
23
23
  args = build_args(directive['args'])
24
24
  opts = build_opts(directive['opts'])
25
25
  command = build_command(directive.merge({'args' => args, 'opts' => opts}))
26
- puts command
27
- puts ''
26
+ # puts command
27
+ # puts ''
28
28
  class_eval command.to_s
29
29
  end
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-20 00:00:00.000000000 Z
11
+ date: 2025-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -26,21 +26,22 @@ dependencies:
26
26
  version: '0'
27
27
  description: "# \U0001F42A caml\n\n> Build CLI apps with YAML\n\n`caml` allows you
28
28
  to build command line applications using declarative yaml.\n`caml` aims to be like
29
- `make`, but by using descriptive, declarative yaml.\n\n## Usage\n\nRunning the command
30
- without any arguments displays the commands defined in the `caml.yaml` file:\n\n```sh\nbin/caml\n```\n\n##
31
- Declaring commands\n\n`caml` reads a file called `caml.yaml` in the current directory
32
- and converts those commands into a unified CLI command.\n\nThe basic structure is
33
- to have a `command`, which has a `desc` and an `execute` for the bash command to
34
- execute.\n\n```yaml\ncommand:\n desc: Command description\n execute: script.sh\n```\n\nThis
35
- yaml will create the following command:\n\n```yaml\nbin/caml command # Command description\n```\n\nAnd
36
- it will run any bash command defined.\n\nArguments may be added under `args` in
37
- a nested fashion as displayed below.\n\n```yaml\ncommand:\n args:\n one:\n desc:
38
- First argument\n type: string\n two:\n desc: Second argument\n type:
39
- string\n```\n\n## Examples\n\n```yaml\nbuild:\n desc: Build our project\n execute:
40
- make\nclean:\n desc: Clean our project\n execute: make clean\n```\n\n```yaml\nbuild:\n
41
- \ desc: Bundle\n execute: bundle install\nmigrate:\n desc: Migrate the test database\n
42
- \ execute: rails db:migrate RAILS_ENV=test\ntest:\n desc: Run tests\n execute:
43
- rspec\n```\n"
29
+ `make`, but by using descriptive, declarative yaml.\n\n<!-- ## Installation -->\n\n<!--
30
+ TODO -->\n\n<!-- ```sh -->\n<!-- gem install caml -->\n<!-- ``` -->\n\n## Usage\n\nRunning
31
+ the command without any arguments displays the commands defined in the `caml.yaml`
32
+ file:\n\n```sh\nbin/caml\n```\n\n## Declaring commands\n\n`caml` reads a file called
33
+ `caml.yaml` in the current directory and converts those commands into a unified
34
+ CLI command.\n\nThe basic structure is to have a `command`, which has a `desc` and
35
+ an `execute` for the bash command to execute.\n\n```yaml\ncommand:\n desc: Command
36
+ description\n execute: script.sh\n```\n\nThis yaml will create the following command:\n\n```yaml\nbin/caml
37
+ command # Command description\n```\n\nAnd it will run any bash command defined.\n\nArguments
38
+ may be added under `args` in a nested fashion as displayed below.\n\n```yaml\ncommand:\n
39
+ \ args:\n one:\n desc: First argument\n type: string\n two:\n desc:
40
+ Second argument\n type: string\n```\n\n## Examples\n\n```yaml\nbuild:\n desc:
41
+ Build our project\n execute: make\nclean:\n desc: Clean our project\n execute:
42
+ make clean\n```\n\n```yaml\nbuild:\n desc: Bundle\n execute: bundle install\nmigrate:\n
43
+ \ desc: Migrate the test database\n execute: rails db:migrate RAILS_ENV=test\ntest:\n
44
+ \ desc: Run tests\n execute: rspec\n```\n"
44
45
  email: tacoda@hey.com
45
46
  executables:
46
47
  - caml
@@ -71,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
72
  - !ruby/object:Gem::Version
72
73
  version: '0'
73
74
  requirements: []
74
- rubygems_version: 3.2.22
75
+ rubygems_version: 3.4.10
75
76
  signing_key:
76
77
  specification_version: 4
77
78
  summary: Build CLI apps using YAML