terminal

package
v0.0.0-...-b32c93e Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToCyanColor

func ConvertToCyanColor(text string) string

func ConvertToRedColor

func ConvertToRedColor(text string) string

func ConvertToYellowColor

func ConvertToYellowColor(text string) string

func Print

func Print(output *TerminalOutput)

func PrintActions

func PrintActions(output *TerminalActionOutput)

func Printf

func Printf(format string, a ...interface{}) (n int, err error)

func Println

func Println(a ...interface{}) (n int, err error)

func PromptGlobalConfigKey

func PromptGlobalConfigKey(profile string, label string, secret bool) (string, error)

func PromptGlobalConfigKeyAndSave

func PromptGlobalConfigKeyAndSave(profile string, label string, secret bool, key string, save bool) (string, error)

Types

type TerminalActionOutput

type TerminalActionOutput struct {
	StepId  string
	Step    string
	Outputs []string
	// contains filtered or unexported fields
}

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
}

Jump to

Keyboard shortcuts

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