Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename output column #69

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion create/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func printUnverifiedHostsMessage(app *apps.Application) {

fmt.Print("\nYour DNS details are:\n")
fmt.Printf(" TXT record:\t%s\n", dnsDetails[0].TXTRecord)
fmt.Printf(" CNAME target:\t%s\n", dnsDetails[0].CNAMETarget)
fmt.Printf(" DNS TARGET:\t%s\n", dnsDetails[0].CNAMETarget)

fmt.Printf("\nTo make your app available on your custom hosts, please use \n"+
"the DNS details and visit %s\n"+
Expand Down
2 changes: 1 addition & 1 deletion get/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func printDNSDetailsTabRow(items []util.DNSDetail, get *Cmd, out io.Writer) erro
w := tabwriter.NewWriter(out, 0, 0, 4, ' ', 0)

if get.Output == full {
get.writeHeader(w, "NAME", "TXT RECORD", "CNAME TARGET")
get.writeHeader(w, "NAME", "TXT RECORD", "DNS TARGET")
}

for _, item := range items {
Expand Down
6 changes: 3 additions & 3 deletions get/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func TestApplicationDNS(t *testing.T) {
},
outputFormat: full,
project: "dev",
output: `NAME TXT RECORD CNAME TARGET
output: `NAME TXT RECORD DNS TARGET
no-txt-record <not set yet> <not set yet>

Visit https://docs.nine.ch/a/myshbw3EY1 to see instructions on how to setup custom hosts
Expand All @@ -298,7 +298,7 @@ Visit https://docs.nine.ch/a/myshbw3EY1 to see instructions on how to setup cust
},
outputFormat: full,
project: "dev",
output: `NAME TXT RECORD CNAME TARGET
output: `NAME TXT RECORD DNS TARGET
sample deploio-site-verification=sample-dev-3ksdk23 sample.3ksdk23.deploio.app

Visit https://docs.nine.ch/a/myshbw3EY1 to see instructions on how to setup custom hosts
Expand Down Expand Up @@ -336,7 +336,7 @@ Visit https://docs.nine.ch/a/myshbw3EY1 to see instructions on how to setup cust
),
},
outputFormat: full,
output: `PROJECT NAME TXT RECORD CNAME TARGET
output: `PROJECT NAME TXT RECORD DNS TARGET
dev sample deploio-site-verification=sample-dev-3ksdk23 sample.3ksdk23.deploio.app
test test deploio-site-verification=test-test-4ksdk23 test.4ksdk23.deploio.app

Expand Down