Documentation ¶
Overview ¶
Copyright 2021 The NitroCI Authors.
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.
Copyright 2021 The NitroCI Authors.
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.
Copyright 2021 The NitroCI Authors.
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 ¶
- func ConvertToCyanColor(text string) string
- func ConvertToRedColor(text string) string
- func ConvertToYellowColor(text string) string
- func Print(output *TerminalOutput)
- func PrintActions(output *TerminalActionOutput)
- func Printf(format string, a ...interface{}) (n int, err error)
- func Println(a ...interface{}) (n int, err error)
- func PromptGlobalConfigKey(profile string, label string, secret bool) (string, error)
- func PromptGlobalConfigKeyAndSave(profile string, label string, secret bool, key string, save bool) (string, error)
- type TerminalActionOutput
- type TerminalItemsOutput
- type TerminalMessageType
- type TerminalOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToCyanColor ¶
func ConvertToRedColor ¶
func ConvertToYellowColor ¶
func Print ¶
func Print(output *TerminalOutput)
func PrintActions ¶
func PrintActions(output *TerminalActionOutput)
func PromptGlobalConfigKey ¶
Types ¶
type TerminalActionOutput ¶
type TerminalItemsOutput ¶
type TerminalItemsOutput struct { Messages []string Suggestions []string Items []string ItemsType TerminalMessageType }
type TerminalMessageType ¶
type TerminalMessageType int64
const ( Info TerminalMessageType = iota Warning Error )
type TerminalOutput ¶
type TerminalOutput struct { Messages []string MessageType TerminalMessageType ItemsOutput []TerminalItemsOutput Output string }