summaryrefslogtreecommitdiffstats
path: root/cobra/README
blob: 145ecd148ac8fed41ade191e479c7540ab9c269e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

# usage
cobra [target...]

# description
cobra tries to satisfies all specified targets and all of it dependencies.

# targets
targets can be a lot of different things, e.g. directories

## dirctory targets
try to do the right thing when the cobra search path contains a directory
that contains an index.{js,sh,py,etc.} file.

## cobra search path
like your sh's PATH

## example: cobra as some kind of make
$ echo $COBRA_PATH
.
$ ls .
foo/ bar/ baz/
$ cat foo/cobra.json
{ "deps": "bar", "baz" }
$ cat bar/cobra.json
No such file or directory
$ cat baz/cobra.json
No such file or directory
$ cobra foo
[cobra bar]
[cobra baz]
[cobra foo]
$ exit