cmd

package
v0.0.0-...-8b480ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2020 Chef Software, Inc.

Author: Marc A. Paradise <marc.paradise@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and LIMITATIONS UNDER THE LICENSE.

Index

Constants

This section is empty.

Variables

View Source
var (
	RootCmd = &cobra.Command{
		Use:   "chef",
		Short: "chef",
		Long: `The Chef command line tool for managing your infrastructure from your workstation.
Docs: https://docs.chef.io/workstation/
Patents: https://www.chef.io/patents`,
		DisableFlagParsing: true,
		TraverseChildren:   true,

		SilenceErrors: true,

		SilenceUsage: true,
	}
)

Functions

func AddInfraFlagsToCommand

func AddInfraFlagsToCommand(cmd *cobra.Command)

Adds common chef-infra flags to the given command

func CheckVersion

func CheckVersion()

func Execute

func Execute()

func FlagInit

func FlagInit() error

func ReturnEnvironment

func ReturnEnvironment()

func ValidateRolloutSetup

func ValidateRolloutSetup() bool

Types

type DefaultCommandRunner

type DefaultCommandRunner struct{}

func (DefaultCommandRunner) PassThroughCommand

func (r DefaultCommandRunner) PassThroughCommand(targetPath string, cmdName string, args []string) error

type PassthroughRunner

type PassthroughRunner interface {
	PassThroughCommand(targetPath string, cmdName string, args []string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL