Skip to content

Improve UX by calling script instead sourcing it #6

@cs-marek-ruszczyk

Description

@cs-marek-ruszczyk

Implement function calling from bash : (eg. Heroku cli style)

if [[ $1 =~ :: ]]; then 
    debug DIRECT-COMMAND  ...
    command=${1#::}
    shift
    $command "$@"
  else 
    default-command
  fi 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions