From 1a3918c9107ebc77e884e19c9ebbdafb0d77f5e0 Mon Sep 17 00:00:00 2001 From: Jason Scarano Date: Tue, 21 Jul 2020 17:05:20 -0600 Subject: [PATCH] update copyright and capitilize flags and comments Signed-off-by: Jason Scarano --- pkg/cmd/cli/backup/create_test.go | 2 +- pkg/cmd/cli/backup/delete.go | 12 ++++++------ pkg/cmd/cli/backup/describe.go | 8 ++++---- pkg/cmd/cli/backup/get.go | 2 +- pkg/cmd/cli/backup/logs.go | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/pkg/cmd/cli/backup/create_test.go b/pkg/cmd/cli/backup/create_test.go index 8315021bd..d4fd25410 100644 --- a/pkg/cmd/cli/backup/create_test.go +++ b/pkg/cmd/cli/backup/create_test.go @@ -1,5 +1,5 @@ /* -Copyright 2019 the Velero contributors. +Copyright 2020 the Velero contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/cmd/cli/backup/delete.go b/pkg/cmd/cli/backup/delete.go index 66ea03214..20783d8cd 100644 --- a/pkg/cmd/cli/backup/delete.go +++ b/pkg/cmd/cli/backup/delete.go @@ -1,5 +1,5 @@ /* -Copyright 2017 the Velero contributors. +Copyright 2020 the Velero contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -40,19 +40,19 @@ func NewDeleteCommand(f client.Factory, use string) *cobra.Command { c := &cobra.Command{ Use: fmt.Sprintf("%s [NAMES]", use), Short: "Delete backups", - Example: ` # delete a backup named "backup-1" + Example: ` # Delete a backup named "backup-1." velero backup delete backup-1 - # delete a backup named "backup-1" without prompting for confirmation + # Delete a backup named "backup-1" without prompting for confirmation. velero backup delete backup-1 --confirm - # delete backups named "backup-1" and "backup-2" + # Delete backups named "backup-1" and "backup-2." velero backup delete backup-1 backup-2 - # delete all backups triggered by schedule "schedule-1" + # Delete all backups triggered by schedule "schedule-1." velero backup delete --selector velero.io/schedule-name=schedule-1 - # delete all backups + # Delete all backups. velero backup delete --all `, Run: func(c *cobra.Command, args []string) { diff --git a/pkg/cmd/cli/backup/describe.go b/pkg/cmd/cli/backup/describe.go index 540055636..dd79b1d02 100644 --- a/pkg/cmd/cli/backup/describe.go +++ b/pkg/cmd/cli/backup/describe.go @@ -1,5 +1,5 @@ /* -Copyright 2017 the Velero contributors. +Copyright 2020 the Velero contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -111,9 +111,9 @@ func NewDescribeCommand(f client.Factory, use string) *cobra.Command { }, } - c.Flags().StringVarP(&listOptions.LabelSelector, "selector", "l", listOptions.LabelSelector, "only show items matching this label selector") - c.Flags().BoolVar(&details, "details", details, "display additional detail in the command output") + c.Flags().StringVarP(&listOptions.LabelSelector, "selector", "l", listOptions.LabelSelector, "Only show items matching this label selector.") + c.Flags().BoolVar(&details, "details", details, "Display additional detail in the command output.") c.Flags().BoolVar(&insecureSkipTLSVerify, "insecure-skip-tls-verify", insecureSkipTLSVerify, "If true, the object store's TLS certificate will not be checked for validity. This is insecure and susceptible to man-in-the-middle attacks. Not recommended for production.") - c.Flags().StringVar(&caCertFile, "cacert", caCertFile, "path to a certificate bundle to use when verifying TLS connections") + c.Flags().StringVar(&caCertFile, "cacert", caCertFile, "Path to a certificate bundle to use when verifying TLS connections.") return c } diff --git a/pkg/cmd/cli/backup/get.go b/pkg/cmd/cli/backup/get.go index f47259a6c..22d0a62a4 100644 --- a/pkg/cmd/cli/backup/get.go +++ b/pkg/cmd/cli/backup/get.go @@ -1,5 +1,5 @@ /* -Copyright 2017 the Velero contributors. +Copyright 2020 the Velero contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/cmd/cli/backup/logs.go b/pkg/cmd/cli/backup/logs.go index 7d22d58ae..8d1171d15 100644 --- a/pkg/cmd/cli/backup/logs.go +++ b/pkg/cmd/cli/backup/logs.go @@ -1,5 +1,5 @@ /* -Copyright 2017 the Velero contributors. +Copyright 2020 the Velero contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.