Skip to content

Commit a1968e3

Browse files
committed
rename agree-tos to agree
1 parent b27399b commit a1968e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmd/cli/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,9 @@ var tosCmd = &cobra.Command{
618618
Args: cobra.NoArgs,
619619
Short: "Read and/or agree the Defang terms and conditions",
620620
RunE: func(cmd *cobra.Command, args []string) error {
621-
agreeToS, _ := cmd.Flags().GetBool("agree")
621+
agree, _ := cmd.Flags().GetBool("agree")
622622
cli.Println("Read our latest terms and conditions at https://defang.io/terms-conditions.html")
623-
if agreeToS {
623+
if agree {
624624
if _, err := client.SignEULA(cmd.Context(), &connect.Request[emptypb.Empty]{}); err != nil {
625625
return err
626626
}
@@ -642,7 +642,7 @@ func main() {
642642
//rootCmd.PersistentFlags().StringVarP(&userLicense, "license", "l", "", "name of license for the project")
643643

644644
// Eula command
645-
tosCmd.Flags().Bool("agree", false, "Agree to the Defang terms of service")
645+
tosCmd.Flags().Bool("agree", false, "Agree to the Defang terms and conditions")
646646
rootCmd.AddCommand(tosCmd)
647647

648648
// Token command

0 commit comments

Comments
 (0)