Code Monkey home page Code Monkey logo

cli's People

Contributors

4nd3r50n avatar apricote avatar arete avatar artheus avatar cedi avatar climann avatar danielwagn3r avatar fhofherr avatar firefly-cpp avatar hcloud-bot avatar jawher avatar jooola avatar joto avatar kevslashnull avatar kossmac avatar ktomk avatar lkaemmerling avatar lnjx avatar markusfreitag avatar marvinruder avatar mfrister avatar n9v9 avatar nikolak avatar phm07 avatar renovate[bot] avatar samcday avatar thcyron avatar thetechnick avatar tomsiewert avatar wullsnpaxbwzgydyyhwtkkspeqoayxxyhoisqhf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cli's Issues

Output configuration

We want to be able to control how output is formatted.

For example, we want to disable printing the column names (first line) to be able to do things like:

$ hcloud server list | wc -l
5

Or to specify which columns are printed:

$ hcloud server list
ID
1
2
3

In the future we might also want to support other output formats (JSON, YAML).

Proposal

Output is completely controlled via the -o option which can be specified multiple times with different values. A value is either just a key key or a key-value pair key=value.

Examples

To disable printing column names:

$ hcloud -o nocolumns server list

To only print the ID and name columns and sort by name:

$ hcloud -o columns=id,name -o sort=name:desc server list

To output JSON:

$ hcloud -o format=json server list

The option format=table is the default output format.

Context handling still not use friendly

Most users seem to assume that after creating a context it is automatically used. Maybe we can satisfy this expectation?

Even if we do not decide to auto-select recently created context we should print a message after context creation which clearly indicates what has happened:

Either

  • new context created but you will need to run hcloud context x use to activate or
  • new context created and it was automatically activated

Show prefix for IPv6 addresses

$ hcloud floating-ip list     
ID   TYPE   DESCRIPTION   IP                   HOME   SERVER   DNS
49   ipv6   dsds          2a01:4f8:1c17:2c::   fsn1   -        -

Fix it everywhere.

Update readme

An asciinema showing the CLI in action would be nice.

Progress bar not shown correctly on Windows

On Windows, the progress bar is only shown correctly when the prompt is slightly larger than the default size (in width). Otherwise the progress bar is printed multiple times.

screenshot 145 eingabeaufforderung

hcloud floating-ip create help: Show valid types. Consider default value

>hcloud floating-ip create --help
Create a Floating IP

Usage:
  hcloud floating-ip create FLAGS

Flags:
      --description string     Description
  -h, --help                   help for create
      --home-location string   Home location
      --server string          Server to assign Floating IP to
      --type string            Type

For type we should show the valid choices (ipv4, ipv6) in the help text.

How about making ipv4 the default for type?

zsh auto-complete is partialy borken

Just builded the client on a ubuntu-16.04 machine (while being connectec via ssh) with golang-1.9 the auto-completion sometimes fails (for example auto completing the ssh-key inside the server create) will lead to the following error:
_handle_flag:27: bad math expression: illegal character: ^[

Feature Idea: Option to set reverse lookup to instance name

In the case of spawning a lot of instances, it may be useful to set the reverse lookup to the instance name, if the instance name is a DNS hostname.

This would prevent to change in XYZ instances manually in the console or with the API.

Release v1.0.0

  • Pin github.com/hetznercloud/hcloud-go to v1.0.0 in Gopkg.toml
  • Set Version constant to 1.0.0
  • Update hcloud-go once v1.0.0 of hcloud-go is re-tagged

Optional

  • Add completions to Homebrew formula
  • Get the Homebrew formula into the main library

hcloud image list: Add optional argument for image type

Right now hcloud image list seems to show images of all types. We should consider adding an optional argument --type which enables you to only list images of a certain type, e.g.

hcloud image list --type system will only show system images

Fix datetime output

$ hcloud image describe ubuntu-16.04 
...
Created:	2018-01-15 11:34:45 +0000 +0000 (1 week ago)
...

Having the offset printed twice looks odd. We should print it either as UTC or in the user’s local time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.