-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvisualization.go
More file actions
27 lines (23 loc) · 981 Bytes
/
visualization.go
File metadata and controls
27 lines (23 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package visualization
import "github.com/spf13/cobra"
func NewVisualizationCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "visualization",
Aliases: []string{"viz"},
Short: "Create and manage Dune visualizations",
Long: "Create and manage visualizations on Dune queries.\n\n" +
"Visualizations are charts, tables, counters, and other visual representations\n" +
"of query results. Each visualization is attached to a saved query by its query ID.\n\n" +
"Important: Visualizations require a saved query ID (from 'dune query create').\n" +
"'dune query run-sql' does not create a saved query and cannot be used with\n" +
"visualizations.\n\n" +
"Supported types: chart, table, counter, pivot, cohort, funnel, choropleth,\n" +
"sankey, sunburst_sequence, word_cloud.",
}
cmd.AddCommand(newCreateCmd())
cmd.AddCommand(newGetCmd())
cmd.AddCommand(newUpdateCmd())
cmd.AddCommand(newDeleteCmd())
cmd.AddCommand(newListCmd())
return cmd
}