chione

command module
v0.0.0-...-624f43b Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

README

Chione

License Apache 2 GitHub version

  • Master : Circle CI
  • Develop : Circle CI

This tool is a simple CLI to display informations about skiing resorts.

Screenshot

Installation

You can download the binaries :

Usage

  • CLI help:

      $ chione help
      NAME:
      chione - CLI for skiing resorts informations
    
      USAGE:
          chione [global options] command [command options] [arguments...]
    
      VERSION:
          0.1.0
    
      COMMANDS:
          version
          resorts
          resort
          help, h  Shows a list of commands or help for one command
    
      GLOBAL OPTIONS:
          --debug        Enable debug mode
          --help, -h     show help
          --version, -v  print the version
    
  • Show skiing resorts for a country :

      $ ./chione --debug resorts list --country france
      Resorts:
      - le-markstein [vosges]
      - bussang---larcenaire [vosges]
      - saint-leger-les-melezes [alpes-du-sud]
      - turini-camp-d'argent- [alpes-du-sud]
      [...]
    
  • Display informations about a ski resort:

      $ /chione --debug resort describe --resort val-thorens --region alpes-du-nord
      +----------------------------+--------------------------------+
      | Status                     | Ouverte                        |
      +----------------------------+--------------------------------+
      | Enneigement sur les pistes | - bas: 55cm                    |
      |                            | - milieu:                      |
      |                            | - haut: 130cm                  |
      +----------------------------+--------------------------------+
      | Enneigement hors-pistes    | - bas:                         |
      |                            | - milieu:                      |
      |                            | - haut:                        |
      +----------------------------+--------------------------------+
      | Chute de neige             | - mardi: 0cm                   |
      |                            | - mercredi: 0cm                |
      |                            | - aujourd'hui: 10cm            |
      |                            | - vendredi: 0cm                |
      |                            | - samedi: 0cm                  |
      |                            | - dimanche: 2cm                |
      |                            | - lundi: 0cm                   |
      |                            | - mardi: 0cm                   |
      |                            | - mercredi: 0cm                |
      |                            | - jeudi: 0cm                   |
      +----------------------------+--------------------------------+
      | Domaine skiable            | - Vertes: 10/11                |
      |                            | - Bleues: 29/29                |
      |                            | - Rouges: 23/30                |
      |                            | - Noires: 5/9                  |
      +----------------------------+--------------------------------+
    

Development

  • Initialize environment

      $ make init
    
  • Build tool :

      $ make build
    
  • Launch unit tests :

      $ make test
    

Contributing

See CONTRIBUTING.

License

See LICENSE for the complete license.

Changelog

A changelog is available

Contact

Nicolas Lamirault [email protected]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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