Documentation ¶
Overview ¶
Copyright © 2021 pe.container <pe.container@trendyol.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 ¶
- Variables
- func Execute()
- func NewCmdDelete() *cobra.Command
- func NewCmdList() *cobra.Command
- func NewCmdLoad() *cobra.Command
- func NewCmdRun() *cobra.Command
- func NewCmdVersion() *cobra.Command
- func NewCompletionCmd() *cobra.Command
- func NewListSupportedVersionsCmd() *cobra.Command
- func TempDir(dir, prefix string) (name string, err error)
- func WriteFile(path string, data []byte, perm os.FileMode) error
- type Info
Constants ¶
This section is empty.
Variables ¶
var ( // Output of "git describe". The prerequisite is that the branch should be // tagged using the correct versioning strategy. GitVersion = "devel" )
Base version information.
This is the fallback data used when version information from git is not provided via go ldflags (e.g. via Makefile).
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewCmdVersion ¶
func NewCompletionCmd ¶
NewCompletionCmd represents the completion command
func NewListSupportedVersionsCmd ¶
NewListSupportedVersionsCmd represents the listSupportedVersions command