|
| 1 | ++ bundle exec bashly generate |
| 2 | +creating user files in src |
| 3 | +created src/initialize.sh |
| 4 | +created src/root_command.sh |
| 5 | +created ./download |
| 6 | +run ./download --help to test your bash script |
| 7 | ++ ./download |
| 8 | +missing required argument: PROTOCOL |
| 9 | +usage: download PROTOCOL PORT [BODY] [options] |
| 10 | ++ ./download http |
| 11 | +missing required argument: PORT |
| 12 | +usage: download PROTOCOL PORT [BODY] [options] |
| 13 | ++ ./download http 3000 |
| 14 | +missing required flag: --method NAME |
| 15 | ++ ./download http 3000 --method GET |
| 16 | +# this file is located in 'src/root_command.sh' |
| 17 | +# you can edit it freely and regenerate (it will not be overwritten) |
| 18 | +args: |
| 19 | +- ${args[--method]} = GET |
| 20 | +- ${args[port]} = 3000 |
| 21 | +- ${args[protocol]} = http |
| 22 | ++ ./download http 3000 --method GET --role admin |
| 23 | +# this file is located in 'src/root_command.sh' |
| 24 | +# you can edit it freely and regenerate (it will not be overwritten) |
| 25 | +args: |
| 26 | +- ${args[--method]} = GET |
| 27 | +- ${args[port]} = 3000 |
| 28 | +- ${args[protocol]} = http |
| 29 | +- ${args[--role]} = admin |
| 30 | ++ ./download http --role admin --method GET 3000 |
| 31 | +# this file is located in 'src/root_command.sh' |
| 32 | +# you can edit it freely and regenerate (it will not be overwritten) |
| 33 | +args: |
| 34 | +- ${args[--method]} = GET |
| 35 | +- ${args[port]} = 3000 |
| 36 | +- ${args[protocol]} = http |
| 37 | +- ${args[--role]} = admin |
| 38 | ++ ./download --role admin --method GET http 3000 |
| 39 | +# this file is located in 'src/root_command.sh' |
| 40 | +# you can edit it freely and regenerate (it will not be overwritten) |
| 41 | +args: |
| 42 | +- ${args[--method]} = GET |
| 43 | +- ${args[port]} = 3000 |
| 44 | +- ${args[protocol]} = http |
| 45 | +- ${args[--role]} = admin |
0 commit comments