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 ¶
Adds common chef-infra flags to the given command
func CheckVersion ¶
func CheckVersion()
func ReturnEnvironment ¶
func ReturnEnvironment()
func ValidateRolloutSetup ¶
func ValidateRolloutSetup() bool
Types ¶
type DefaultCommandRunner ¶
type DefaultCommandRunner struct{}
var Runner DefaultCommandRunner
func (DefaultCommandRunner) PassThroughCommand ¶
func (r DefaultCommandRunner) PassThroughCommand(targetPath string, cmdName string, args []string) error
Source Files ¶
- capture.go
- cleanPolicyCoobooks.go
- cleanPolicyRevisions.go
- deletePolicy.go
- deletePolicyGroup.go
- describeCookbook.go
- diff.go
- env.go
- exec.go
- export.go
- gem.go
- generate.go
- infra_flags.go
- install.go
- license.go
- push.go
- pushArchive.go
- report.go
- root.go
- shellInit.go
- showPolicy.go
- supermarket.go
- undelete.go
- update.go
- version.go
Click to show internal directories.
Click to hide internal directories.