examples/filters/src/bashly.yml
name: cli
help: Sample application
version: 0.1.0
commands:
- name: container
help: Perform actions on a docker container
# When the command is executed, your script will look for a function named
# "filter_docker_running" and execute it. If it prints a string, it will be
# considered an error and the command execution will be halted.
filters:
- docker_running
args:
- name: id
required: true
help: Container ID
- name: redis
help: Perform actions in redis
# When multiple filters are present, the command will halt if any of them
# prints an error string.
filters:
- docker_running
- redis_running