Skip to content

Commit

Permalink
fix: updated examples and command info/notes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-s committed Feb 6, 2025
1 parent a52d822 commit d587baf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions commands/hosts/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewCreateCmd(printer *utils.Printer) *cobra.Command {
cmd := &cobra.Command{
Use: "create",
Aliases: []string{"new"},
Example: "qernal host create --name evilcorp.org --project takeover --cert letsencrypt",
Example: "qernal host create --name example.org --project landing-page --cert MY-CERT-2025",
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
token, err := auth.GetQernalToken()
Expand Down Expand Up @@ -81,7 +81,7 @@ func NewCreateCmd(printer *utils.Printer) *cobra.Command {
}

printer.PrintResource(utils.FormatOutput(data, common.OutputFormat))
printer.PrintResource(charm.RenderWarning("pls update your DNS with the following records\n"))
printer.PrintResource(charm.RenderWarning("Please add the TXT record for host verification, then update your A and AAAA records\nwhen verification is complete. The host will not be routable until the verification has completed.\n"))
fmt.Println(charm.RenderDNSTable(dnsRecords))
return nil
},
Expand Down
2 changes: 1 addition & 1 deletion commands/hosts/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewUpdateCmd(printer *utils.Printer) *cobra.Command {
cmd := &cobra.Command{
Use: "update",
Aliases: []string{"edit"},
Example: "qernal host update --cert letsencrypt --disabled",
Example: "qernal host update --cert MY-CERT-2025 --disabled",
PreRunE: func(cmd *cobra.Command, args []string) error {
cert, _ := cmd.Flags().GetString("cert")
isDisabled, _ := cmd.Flags().GetBool("disable")
Expand Down
6 changes: 3 additions & 3 deletions commands/hosts/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func NewVerifyCmd(printer *utils.Printer) *cobra.Command {
cmd := &cobra.Command{
Use: "verify",
Aliases: []string{"verify"},
Short: "schdeule a qernal host for verification",
Example: "qernal hosts verify dns.org --project {proj_name}",
Short: "schdeule a host for (re)verification",
Example: "qernal hosts verify example.org --project landing-page",
RunE: func(cmd *cobra.Command, args []string) error {
token, err := auth.GetQernalToken()
if err != nil {
Expand Down Expand Up @@ -89,7 +89,7 @@ func NewVerifyCmd(printer *utils.Printer) *cobra.Command {
data = map[string]interface{}{
"message": "Host verification scheduled successfully",
"details": fmt.Sprintf("Verifying host '%s' in project '%s'", hostName, projectName),
"note": "DNS changes may take up to 48 hours to propagate. Use 'qernal hosts list' to check verification status.",
"note": "DNS propagation times are dependent upon your provider. Use 'qernal hosts list' to check verification status.",
}
}
printer.PrintResource(utils.FormatOutput(data, common.OutputFormat))
Expand Down

0 comments on commit d587baf

Please sign in to comment.