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.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/bin/caml +2 -2
- metadata +19 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89fb929361ce5de9959beac6898d64208cc7cffdbb77e8083bca78873955723a
|
4
|
+
data.tar.gz: 7b4288ec82d1b423db8bed3c667e61028141f49a5577759da798a24c15280926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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:
|
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##
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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.
|
75
|
+
rubygems_version: 3.4.10
|
75
76
|
signing_key:
|
76
77
|
specification_version: 4
|
77
78
|
summary: Build CLI apps using YAML
|