Skip to content

Commit

Permalink
cli/demo: explain the loaded dataset upon startup
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Aug 4, 2019
1 parent 69f1daf commit 6091118
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pkg/cli/demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,20 @@ func runDemo(cmd *cobra.Command, gen workload.Generator) error {
fmt.Printf(`#
# Welcome to the CockroachDB demo database!
#
# You are connected to a temporary, in-memory CockroachDB
# cluster of %d node%s. Your changes will not be saved!
# You are connected to a temporary, in-memory CockroachDB cluster of %d node%s.
`, demoCtx.nodes, util.Pluralize(int64(demoCtx.nodes)))

if gen != nil {
fmt.Printf("# The cluster has been preloaded with the %q dataset\n# (%s).\n",
gen.Meta().Name, gen.Meta().Description)
}

fmt.Printf(`#
# Your changes will not be saved!
#
# Web UI: %s
#
`, demoCtx.nodes, util.Pluralize(int64(demoCtx.nodes)), adminURL)
`, adminURL)
}

checkTzDatabaseAvailability(context.Background())
Expand Down

0 comments on commit 6091118

Please sign in to comment.