RecommendedCommandName is the recommended preference command name
const RecommendedCommandName = "preference"
func HumanReadableOutput(preferenceList api.PreferenceList, registryList []api.Registry)
func NewCmdPreference(ctx context.Context, name, fullName string, testClientset clientset.Clientset) *cobra.Command
NewCmdPreference implements the utils config odo command
func NewCmdSet(ctx context.Context, name, fullName string, testClientset clientset.Clientset) *cobra.Command
NewCmdSet implements the config set odo command
func NewCmdUnset(name, fullName string, testClientset clientset.Clientset) *cobra.Command
NewCmdUnset implements the preference unset odo command
func NewCmdView(name, fullName string, testClientset clientset.Clientset) *cobra.Command
NewCmdView implements the config view odo command
SetOptions encapsulates the options for the command
type SetOptions struct {
// contains filtered or unexported fields
}
func NewSetOptions() *SetOptions
NewSetOptions creates a new SetOptions instance
func (o *SetOptions) Complete(ctx context.Context, cmdline cmdline.Cmdline, args []string) (err error)
Complete completes SetOptions after they've been created
func (o *SetOptions) Run(ctx context.Context) (err error)
Run contains the logic for the command
func (o *SetOptions) SetClientset(clientset *clientset.Clientset)
func (o *SetOptions) UseDevfile(ctx context.Context, cmdline cmdline.Cmdline, args []string) bool
func (o *SetOptions) Validate(ctx context.Context) (err error)
Validate validates the SetOptions based on completed values
UnsetOptions encapsulates the options for the command
type UnsetOptions struct {
// contains filtered or unexported fields
}
func NewUnsetOptions() *UnsetOptions
NewUnsetOptions creates a new UnsetOptions instance
func (o *UnsetOptions) Complete(ctx context.Context, cmdline cmdline.Cmdline, args []string) (err error)
Complete completes UnsetOptions after they've been created
func (o *UnsetOptions) Run(ctx context.Context) (err error)
Run contains the logic for the command
func (o *UnsetOptions) SetClientset(clientset *clientset.Clientset)
func (o *UnsetOptions) UseDevfile(ctx context.Context, cmdline cmdline.Cmdline, args []string) bool
func (o *UnsetOptions) Validate(ctx context.Context) (err error)
Validate validates the UnsetOptions based on completed values
ViewOptions encapsulates the options for the command
type ViewOptions struct {
// contains filtered or unexported fields
}
func NewViewOptions() *ViewOptions
NewViewOptions creates a new ViewOptions instance
func (o *ViewOptions) Complete(ctx context.Context, cmdline cmdline.Cmdline, args []string) (err error)
Complete completes ViewOptions after they've been created
func (o *ViewOptions) Run(ctx context.Context) (err error)
Run contains the logic for the command
func (o *ViewOptions) RunForJsonOutput(ctx context.Context) (result interface{}, err error)
func (o *ViewOptions) SetClientset(clientset *clientset.Clientset)
func (o *ViewOptions) UseDevfile(ctx context.Context, cmdline cmdline.Cmdline, args []string) bool
func (o *ViewOptions) Validate(ctx context.Context) (err error)
Validate validates the ViewOptions based on completed values