askme-golang

command module
v0.0.0-...-2d1c021 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2015 License: MIT Imports: 4 Imported by: 0

README

AskMe-Golang

Build Status

AskMe Golang Client

Use Case

See use case

Installation

go get github.com/pirsquare/askme-golang

# For linux/mac run command below to rename executable to `askme`
dirname $(which askme-golang) | \
{ read filedir; mv $filedir/askme-golang $filedir/askme; }

# For windows run command below from your root
# path to search and rename executable to `askme`
for /r %x in (askme-golang.e?e) do ren "%x" askme.exe

Usage


OPTIONS:

   --fields, -f                 Specified fields to retrieve (comma-seperated)
   --delimiter, -d	       	    Delimiter (default is ' | ' with spaces)
   --omit-columns, -o           Omit Columns

Examples


# Get list of digitalocean's supported distribution image.
# In this case, we are querying for digitalocean's "dist-image" record
askme do dist-image

  Output:
    Id: centos-5-8-x32   | Description: Centos 5.8 32bit
    Id: centos-5-8-x64   | Description: Centos 5.8 64bit
    Id: centos-6-5-x32   | Description: Centos 6.5 32bit
    Id: centos-6-5-x64   | Description: Centos 6.5 64bit
    Id: centos-7-0-x64   | Description: Centos 7.0 64bit
    Id: coreos-alpha     | Description: CoreOS Alpha
    Id: coreos-beta      | Description: CoreOS Beta
    Id: coreos-stable    | Description: CoreOS Stable
    Id: debian-6-0-x32   | Description: Debian 6.0 32bit
    Id: debian-6-0-x64   | Description: Debian 6.0 64bit
    Id: debian-7-0-x32   | Description: Debian 7.0 32bit
    Id: debian-7-0-x64   | Description: Debian 7.0 64bit
    Id: debian-8-x32     | Description: Debian 8 32bit
    Id: debian-8-x64     | Description: Debian 8 64bit
    Id: fedora-21-x64    | Description: Fedora 21 64bit
    Id: fedora-22-x64    | Description: Fedora 22 64bit
    Id: freebsd-10-1-x64 | Description: FreeBSD 10.1 64bit
    Id: freebsd-10-2-x64 | Description: FreeBSD 10.2 64bit
    Id: ubuntu-12-04-x32 | Description: Ubuntu 12.04 32bit
    Id: ubuntu-12-04-x64 | Description: Ubuntu 12.04 64bit
    Id: ubuntu-14-04-x32 | Description: Ubuntu 14.04 32bit
    Id: ubuntu-14-04-x64 | Description: Ubuntu 14.04 64bit
    Id: ubuntu-15-04-x32 | Description: Ubuntu 15.04 32bit
    Id: ubuntu-15-04-x64 | Description: Ubuntu 15.04 64bit



# Omit columns and only show ids
askme do dist-image -o --fields="id"

  Output:
	centos-5-8-x32
    centos-5-8-x64
    centos-6-5-x32
    centos-6-5-x64
    centos-7-0-x64
    coreos-alpha
    coreos-beta
    coreos-stable
    debian-6-0-x32
    debian-6-0-x64
    debian-7-0-x32
    debian-7-0-x64
    debian-8-x32
    debian-8-x64
    fedora-21-x64
    fedora-22-x64
    freebsd-10-1-x64
    freebsd-10-2-x64
    ubuntu-12-04-x32
    ubuntu-12-04-x64
    ubuntu-14-04-x32
    ubuntu-14-04-x64
    ubuntu-15-04-x32
    ubuntu-15-04-x64



# Change delimiter value. Query google compute engine's supported disk type
askme gcloud gce-disk-type --delimiter=" || "

  Output:
    Id: local-ssd   || Description: Local SSDs
    Id: pd-ssd      || Description: SSD Persistent Disk
    Id: pd-standard || Description: Standard Persistent Disk


Supported fields

See supported fields

Supported records

See supported records

Note

Do not modify source directory. We use git subtree to push source data to source directory. If you want submit PR for changes in source data, submit it at AskMe main repo.

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