Re: CF CLI v6.25.0 Released Today


Michael Maximilien
 

+1 for tab completion. Yeah!!

On Mon, Feb 27, 2017 at 7:50 PM Amit Gupta <agupta(a)pivotal.io> wrote:

Tab completion! Nice!

On Mon, Feb 27, 2017 at 7:47 PM Koper, Dies <diesk(a)fast.au.fujitsu.com>
wrote:

The CF CLI team just cut 6.24.0.

Deb, yum and Homebrew repos have been updated; binaries, installers and
link to release notes are available at:



https://github.com/cloudfoundry/cli#downloads
Tab completion

The cf CLI now supports tab completion on systems where that is enabled.

Completion is provided of cf native subcommands and option names as well
as arguments & option values that are available locally to the CLI, i.e.
filepaths and e.g. true/false and process/port/http enumerations.
Examples

$ cf <tab><tab>

Display all 156 possibilities? (y or n)



$ cf i<tab>

->

$ cf install-plugin



$ cf set-org-role user myorg o<tab>m<tab>

->

$ cf set-org-role user myorg OrgManager



The Debian, RPM and Homebrew installers of the cf CLI bundle a bash tab
completion file
<https://github.com/cloudfoundry/cli/blob/master/ci/installers/completion/cf>
that is copied to the operating system's standard location (e.g.
/usr/share/bash-completion/completions/ or /etc/bash_completion.d/),
where it should be picked up automatically on Bash completion enabled
environments the next time you open a Bash shell. Refer to your shell &
operating system's documentation for details.
For downloaders of the binary releases or the Mac OS X package, download
the above file and ensure it is executed when you open a shell (e.g. by
sourcing it from your shell profile (~/.bash_profile)).

Zsh users may try loading this file from ~/.zshrc as suggested here
<http://stackoverflow.com/a/27853970/1227328>.

Windows users may try this completion file
<https://github.com/dkoper/clink-completions/blob/87086ba8322c24fb8498d7a9a39ff9183e975f05/cf.lua>
with clink <https://github.com/mridgers/clink>.
CLI binary 30% smaller

The file size of the cf CLI binaries has been reduced by about 30%.

Previously, the binaries included additional data useful in debugging and
profiling the CLI. The CLI team never used these tools, so it made sense to
remove them.

This change should not affect the execution of the actual program. They
only affect whether you can debug or analyze the binary with other tools,
which you still can if you rebuild the binary to include this data.
Plugin Framework Changes

- The GetApp route summary API now includes fields to retrieve a
route's path or port. (#1066
<https://github.com/cloudfoundry/cli/issues/1066>)

Updated commands

- run-task now accepts parameters to configure the memory and disk
space limits for a task.
- push options -f and -p and other commands accepting a path to a file
or folder now display a friendlier parsing error when the filepath is not
found. (#1030 <https://github.com/cloudfoundry/cli/issues/1030>)
- help now displays the alias of plugin commands, and accepts them to
display its command help text. (#1048
<https://github.com/cloudfoundry/cli/issues/1048>)
- login now accepts the SSO passcode on the command line. (#1052
<https://github.com/cloudfoundry/cli/pull/1052>)
- ssh now accept base64 encoded SHA256 SSH fingerprints exposed by
/v2/info. (#1072 <https://github.com/cloudfoundry/cli/pull/1072>)



Enjoy!



Regards,

Dies Koper
Cloud Foundry Product Manager - CLI





--
dr.max Sent from my iPhone http://maximilien.org

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.