Skip to content

Commit

Permalink
Merge pull request #69 from ninech/rename-column
Browse files Browse the repository at this point in the history
rename output column
  • Loading branch information
thirdeyenick authored Nov 8, 2023
2 parents 06e9542 + 36ac2e6 commit 2135486
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 2135486

Please sign in to comment.