diff --git a/cmd/query.go b/cmd/query.go index 1625c75..744f758 100644 --- a/cmd/query.go +++ b/cmd/query.go @@ -55,13 +55,10 @@ var query = &cobra.Command{ // if no query is provided set it to default "select * from " // here is the first stream that server returns if len(args) == 0 || args[0] == "" || args[0] == " " { - stream, err := fetchFirstStream() - if err != nil { - return err - } - query = fmt.Sprintf("select * from %s", stream) - } else { - query = args[0] + fmt.Println("please enter your query") + fmt.Printf("Example:\n pb query \"select * from frontend\" --from=10m --to=now") + return nil + } start, err := command.Flags().GetString(startFlag) diff --git a/main.go b/main.go index bf91933..db1e4db 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ var ( func defaultInitialProfile() config.Profile { return config.Profile{ - URL: "https://demo.parseable.io", + URL: "https://demo.parseable.com", Username: "admin", Password: "admin", }