Skip to content

Commit 28d1e2a

Browse files
committed
fix some examples
1 parent 7c30af1 commit 28d1e2a

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

Runfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ end
3333

3434
help "Append the content of bashly.yml to all example READMEs"
3535
action :examples do
36+
# Patch the PATH to allow the extensible example to run properly
37+
ENV['PATH']="#{Dir.pwd}/examples/extensible:#{ENV['PATH']}"
3638
Example.all.each do |example|
3739
say example.dir
3840
example.regenerate_readme

examples/dependencies/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ commands:
3232
```shell
3333
$ ./cli download
3434

35-
# this file is located in 'src/download_command.sh'
36-
# code for 'cli download' goes here
37-
# you can edit it freely and regenerate (it will not be overwritten)
38-
args: none
35+
missing dependency: shmurl
3936

4037

4138
$ ./cli upload

examples/extensible/README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,12 @@ Commands:
5555

5656
$ ./cli status --some --flags
5757

58-
cli - Sample application that can be externally extended
59-
60-
Usage:
61-
cli [command]
62-
cli [command] --help | -h
63-
cli --version | -v
64-
65-
Commands:
66-
upload Upload a file
67-
download Download a file
58+
This is an external executable that serves as an extension to
59+
the cli app.
60+
If placed in the path, it will be executed whenever someone runs:
61+
$ cli status <any argument>
6862

63+
Received args: --some --flags
6964

7065

7166
```

0 commit comments

Comments
 (0)