Consistent short description for commands

pull/1489/head
Budh Ram Gurung 2017-05-12 23:04:47 +05:30
parent 85582c469c
commit 22e0f23845
10 changed files with 11 additions and 11 deletions

View File

@ -26,8 +26,8 @@ import (
var ProfileCmd = &cobra.Command{
Use: "profile MINIKUBE_PROFILE_NAME. You can return the the default minikube name by running `minikube profile default`",
Short: "profile sets the current minikube profile. This is used to run and manage multiple minikube instance. You can return the the default minikube name by running `minikube profile default`",
Long: "profile sets the current minikube profile. This is used to run and manage multiple minikube instance. You can return the the default minikube name by running `minikube profile default`",
Short: "Profile sets the current minikube profile",
Long: "profile sets the current minikube profile. This is used to run and manage multiple minikube instance. You can return to the default minikube name by running `minikube profile default`",
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 1 {
fmt.Fprintln(os.Stderr, "usage: minikube profile MINIKUBE_PROFILE_NAME")

View File

@ -28,7 +28,7 @@ import (
// deleteCmd represents the delete command
var deleteCmd = &cobra.Command{
Use: "delete",
Short: "Deletes a local kubernetes cluster.",
Short: "Deletes a local kubernetes cluster",
Long: `Deletes a local kubernetes cluster. This command deletes the VM, and removes all
associated files.`,
Run: func(cmd *cobra.Command, args []string) {

View File

@ -282,7 +282,7 @@ func (EnvNoProxyGetter) GetNoProxyVar() (string, string) {
// envCmd represents the docker-env command
var dockerEnvCmd = &cobra.Command{
Use: "docker-env",
Short: "sets up docker env variables; similar to '$(docker-machine env)'",
Short: "Sets up docker env variables; similar to '$(docker-machine env)'",
Long: `sets up docker env variables; similar to '$(docker-machine env)'`,
Run: func(cmd *cobra.Command, args []string) {

View File

@ -26,7 +26,7 @@ import (
// getK8sVersionsCmd represents the ip command
var getK8sVersionsCmd = &cobra.Command{
Use: "get-k8s-versions",
Short: "Gets the list of available kubernetes versions available for minikube.",
Short: "Gets the list of available kubernetes versions available for minikube",
Long: `Gets the list of available kubernetes versions available for minikube.`,
Run: func(cmd *cobra.Command, args []string) {
kubernetes_versions.PrintKubernetesVersionsFromGCS(os.Stdout)

View File

@ -34,7 +34,7 @@ var (
// logsCmd represents the logs command
var logsCmd = &cobra.Command{
Use: "logs",
Short: "Gets the logs of the running localkube instance, used for debugging minikube, not user code.",
Short: "Gets the logs of the running localkube instance, used for debugging minikube, not user code",
Long: `Gets the logs of the running localkube instance, used for debugging minikube, not user code.`,
Run: func(cmd *cobra.Command, args []string) {
api, err := machine.NewAPIClient(clientType)

View File

@ -36,7 +36,7 @@ import (
// mountCmd represents the mount command
var mountCmd = &cobra.Command{
Use: "mount [flags] MOUNT_DIRECTORY(ex:\"/home\")",
Short: "Mounts the specified directory into minikube.",
Short: "Mounts the specified directory into minikube",
Long: `Mounts the specified directory into minikube.`,
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 1 {

View File

@ -70,7 +70,7 @@ var (
// startCmd represents the start command
var startCmd = &cobra.Command{
Use: "start",
Short: "Starts a local kubernetes cluster.",
Short: "Starts a local kubernetes cluster",
Long: `Starts a local kubernetes cluster using VM. This command
assumes you have already installed one of the VM drivers: virtualbox/vmwarefusion/kvm/xhyve/hyperv.`,
Run: runStart,

View File

@ -40,7 +40,7 @@ type Status struct {
// statusCmd represents the status command
var statusCmd = &cobra.Command{
Use: "status",
Short: "Gets the status of a local kubernetes cluster.",
Short: "Gets the status of a local kubernetes cluster",
Long: `Gets the status of a local kubernetes cluster.`,
Run: func(cmd *cobra.Command, args []string) {
api, err := machine.NewAPIClient(clientType)

View File

@ -29,7 +29,7 @@ import (
// stopCmd represents the stop command
var stopCmd = &cobra.Command{
Use: "stop",
Short: "Stops a running local kubernetes cluster.",
Short: "Stops a running local kubernetes cluster",
Long: `Stops a local kubernetes cluster running in Virtualbox. This command stops the VM
itself, leaving all files intact. The cluster can be started again with the "start" command.`,
Run: func(cmd *cobra.Command, args []string) {

View File

@ -26,7 +26,7 @@ import (
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version of minikube.",
Short: "Print the version of minikube",
Long: `Print the version of minikube.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
// Explicitly disable update checking for the version command