Name: dcos-checks
Owner: DC/OS
Description: checks for DC/OS cluster
Created: 2017-05-12 22:51:00.0
Updated: 2018-04-30 17:42:14.0
Pushed: 2018-04-30 17:42:13.0
Homepage: https://dcos.io
Size: 9663
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
go get github.com/spf13/cobra/cobra
cobra add -t github.com/dcos/dcos-checks/cmd/checks/<subcommand> <subcommand>
edit cmd/checks/<subcommand>.go
rename init()
to func Add(root *cobra.Command)
and change it accordingly:
Add(root *cobra.Command) {
ot.AddCommand(<subcommand>)
other flag and configuration goes here
Modify cmd/subcommands.go
to add your check.
see https://github.com/spf13/cobra for more details