enaml-ops / omg-cli

it's kind of like an (o)ps (m)anager in (g)olang
Apache License 2.0
15 stars 11 forks source link

omg help is not displayed unless the user is in the same dir as the executable #46

Open ghost opened 7 years ago

ghost commented 7 years ago
sandbox $ pwd
/home/ops

$ which omg-linux
/home/ops/bin/omg-linux

sandbox $ omg-linux -h
<nothing>

sandbox $ cd /home/ops/bin
sandbox $ omg-linux -h
NAME:
   omg-linux - A new cli application

USAGE:
   omg-linux [global options] command [command options] [arguments...]

VERSION:
   v1.0.3-572df1

COMMANDS:
     azure               azure [--flags] - deploy a bosh to azure
     aws                 aws [--flags] - deploy a bosh to aws
     gcp                 gcp [--flags] - deploy a bosh to GCP
     photon              photon [--flags] - deploy a bosh to photon
     vsphere             vsphere [--flags] - deploy a bosh to vsphere
     list-cloudconfigs
     list-products
     product-meta        product-meta <prod-name> - show product metadata
     register-plugin     register-plugin -type [cloudconfig, product] -pluginpath <plugin-binary>
     deploy-cloudconfig  deploy-cloudconfig <cloudconfig-name> [--flags] - deploy a cloudconfig to bosh
     deploy-product      deploy-product <prod-name> [--flags] - deploy a product via bosh
     help, h             Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)
xchapter7x commented 7 years ago

set the OMG_PLUGIN_DIR to whichever dir contains your plugins and you should be able to run omg-cli from anywhere.