DannyBen/bashly

View on GitHub
examples/dependencies/src/bashly.yml

Summary

Maintainability
Test Coverage
name: cli
help: Sample application that requires dependencies
version: 0.1.0

commands:
- name: download
  help: Download something

  # By defining dependencies, the generated script will be halted (with a
  # friendly error message) unless all of these commands exist in the host
  # system.
  dependencies:
  - git
  - curl
  - shmurl

- name: upload
  help: Upload something

  # Dependencies can also be defined as a hash of 'command: message' pairs.
  # The message can use colors from the colors library (bashly add colors).
  dependencies:
    mini-docker: install with $(green gem install mini-docker)
    docker: visit https://docker.com for more information