Repository navigation
Closed
Description
$ 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).
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]osc get --help returns kubectl usage[/-][+]osc get --help returns kubectl get usage[/+]mfojtik commentedon Feb 24, 2015
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:
smarterclayton commentedon Feb 25, 2015
We should wrap and change the description
0xmichalis commentedon Feb 26, 2015
osc create --help,osc update --help,osc log --help, andosc delete --helpdo the same thing as well0xmichalis commentedon Feb 26, 2015
I'll wrap them all and submit a pr most probably tomorrow