fcfc

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

fcfc: Factory of CF CLI

fcfc is alias factory for cf.

Install

Download binary from releases page and place it in $PATH.

Usage

Write settings YAML and place into ~/.fcfc.yml.

E.g.

commands:
  - name: devcf
    api: api.run.pivotal.io
    org: myorg
    space: myspace
    login-options: "-u autopp@example.com"
  - name: othercf
    api: pcf.example.com
    org: otherorg
    space: otherspace
    login-options: "-u autopp"

And evaluate output of fcfc in .bashrc/.zshrc.

eval "$(fcfc)"

If you use fish, you should set -s fish and evaluate in config.fish.

eval (fcfc -s fish | source)

You can also place settings into other path. If you do, please pass it as a parameter.

eval "$(fcfc /path/to/.fcfc.yml)"

Now, you can use login-devcf/login-othercf to login your target and devcf/othercf to execute command in specified target.

$ login-devcf
$ devcf push

License

Apache License 2.0

Author

@AuToPP

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL