Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = cli.Command{ Name: "dashboards", Usage: "Manipulate custom dashboards", Description: ` Manipulate custom dashboards. With no subcommand specified, this will show all dashboards. See https://mackerel.io/docs/entry/advanced/cli `, Action: doListDashboards, Subcommands: []cli.Command{ { Name: "pull", Usage: "Pull custom dashboards", Description: ` Pull custom dashboards from Mackerel server and output these to local files. `, Action: doPullDashboard, }, { Name: "push", Usage: "Push custom dashboard", ArgsUsage: "--file-path | F <file>", Description: ` Push custom dashboards to Mackerel server from a specified file. When "id" is defined in the file, updates the dashboard. Otherwise creates a new dashboard. `, Action: doPushDashboard, Flags: []cli.Flag{ cli.StringFlag{Name: "file-path, F", Usage: "read dashboard from the file"}, }, }, { Name: "generate", Hidden: true, Action: func(c *cli.Context) error { logger.Log("error", "`mkr dashboards generate` command has been obsolete") os.Exit(1) return nil }, }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.