Skip to content

Commit

Permalink
Fix:Url for demo server updated
Browse files Browse the repository at this point in the history
Change: on 'pb query' if there is no arguments now there will a message
  • Loading branch information
Koustavd18 committed Jul 26, 2024
1 parent 4f65def commit c823bf1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions cmd/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,10 @@ var query = &cobra.Command{
// if no query is provided set it to default "select * from <steam-name>"
// <steam-name> 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)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down

0 comments on commit c823bf1

Please sign in to comment.