dcos/dcos-checks

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

dcos-checks

add a new check
  1. go get github.com/spf13/cobra/cobra

  2. cobra add -t github.com/dcos/dcos-checks/cmd/checks/<subcommand> <subcommand>

  3. edit cmd/checks/<subcommand>.go

  4. 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
    
    
  5. Modify cmd/subcommands.go to add your check.

see https://github.com/spf13/cobra for more details


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.