Skip to content

osc get --help returns kubectl get usage #1125

Closed

Description

@0xmichalis
$ osc get --help
Display one or many resources.

Possible resources include pods (po), replication controllers (rc), services
(se), minions (mi), or events (ev).

By specifying the output as 'template' and providing a Go template as the value
of the --template flag, you can filter the attributes of the fetched resource(s).

Examples:

    // List all pods in ps output format.
    $ kubectl get pods

    // List a single replication controller with specified ID in ps output format.
    $ kubectl get replicationController 1234-56-7890-234234-456456

    // List a single pod in JSON output format.
    $ kubectl get -o json pod 1234-56-7890-234234-456456

    // Return only the status value of the specified pod.
    $ kubectl get -o template pod 1234-56-7890-234234-456456 --template={{.currentState.status}}

    // List all replication controllers and services together in ps output format.
    $ kubectl get rc,services

Options:
      --no-headers=false: When using the default output, don't print headers.
  -o, --output="": Output format. One of: json|yaml|template|templatefile.
      --output-version="": Output the formatted object with the given version (default api-version).
  -l, --selector="": Selector (label query) to filter on
  -t, --template="": Template string or path to template file to use when -o=template or -o=templatefile.  The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]
  -w, --watch=false: After listing/getting the requested object, watch for changes.
      --watch-only=false: Watch for changes to the requested object(s), without listing/getting first.

Use "osc --help" for a list of all commands available in osc.
Use "osc options" for a list of global command-line options (applies to all commands).

Activity

  1. changed the title [-]osc get --help returns kubectl usage[/-] [+]osc get --help returns kubectl get usage[/+] on Feb 24, 2015
  2. mfojtik commented on Feb 24, 2015

    @mfojtik
    Contributor

    this should be fixed upstream (make command name configurable) dunno if
    upstream will want that change.... @smarterclayton ?
    On Feb 24, 2015 3:18 PM, "Michail Kargakis" [email protected]
    wrote:

    $ osc get --help
    Display one or many resources.

    Possible resources include pods (po), replication controllers (rc), services
    (se), minions (mi), or events (ev).

    By specifying the output as 'template' and providing a Go template as the value
    of the --template flag, you can filter the attributes of the fetched resource(s).

    Examples:

    // List all pods in ps output format.
    $ kubectl get pods
    
    // List a single replication controller with specified ID in ps output format.
    $ kubectl get replicationController 1234-56-7890-234234-456456
    
    // List a single pod in JSON output format.
    $ kubectl get -o json pod 1234-56-7890-234234-456456
    
    // Return only the status value of the specified pod.
    $ kubectl get -o template pod 1234-56-7890-234234-456456 --template={{.currentState.status}}
    
    // List all replication controllers and services together in ps output format.
    $ kubectl get rc,services
    

    Options:
    --no-headers=false: When using the default output, don't print headers.
    -o, --output="": Output format. One of: json|yaml|template|templatefile.
    --output-version="": Output the formatted object with the given version (default api-version).
    -l, --selector="": Selector (label query) to filter on
    -t, --template="": Template string or path to template file to use when -o=template or -o=templatefile. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]
    -w, --watch=false: After listing/getting the requested object, watch for changes.
    --watch-only=false: Watch for changes to the requested object(s), without listing/getting first.

    Use "osc --help" for a list of all commands available in osc.
    Use "osc options" for a list of global command-line options (applies to all commands).

    —
    Reply to this email directly or view it on GitHub
    #1125.

  3. smarterclayton commented on Feb 25, 2015

    @smarterclayton
    Contributor

    We should wrap and change the description

  4. 0xmichalis commented on Feb 26, 2015

    @0xmichalis
    ContributorAuthor

    osc create --help, osc update --help, osc log --help, and osc delete --help do the same thing as well

  5. 0xmichalis commented on Feb 26, 2015

    @0xmichalis
    ContributorAuthor

    I'll wrap them all and submit a pr most probably tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions