github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/pkg/cli/common.go (about)

     1  package cli
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/spf13/pflag"
     7  )
     8  
     9  func addPlanFileFlag(flagSet *pflag.FlagSet, p *string) {
    10  	flagSet.StringVarP(p, "plan-file", "f", "kismatic-cluster.yaml", "path to the installation plan file")
    11  }
    12  
    13  type planFileNotFoundErr struct {
    14  	filename string
    15  }
    16  
    17  func (e planFileNotFoundErr) Error() string {
    18  	return fmt.Sprintf("Plan file not found at %q. If you don't have a plan file, you may generate one with 'kismatic install plan'", e.filename)
    19  }