Documentation
¶
Overview ¶
Copyright 2026 Teradata
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 DiffFormatter() *diffview.DiffView
- func NewSimpleHelp(shortList []key.Binding, fullList [][]key.Binding) help.KeyMap
- func Section(text string, width int) string
- func SectionWithInfo(text string, width int, info string) string
- func SelectableButton(opts ButtonOpts) string
- func SelectableButtons(buttons []ButtonOpts, spacing string) string
- func SelectableButtonsVertical(buttons []ButtonOpts, spacing int) string
- func Status(opts StatusOpts, width int) string
- func Title(title string, width int) string
- type ButtonOpts
- type KeyMapHelp
- type StatusOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffFormatter ¶
func NewSimpleHelp ¶
func SelectableButton ¶
func SelectableButton(opts ButtonOpts) string
SelectableButton creates a button with an underlined character and selection state
func SelectableButtons ¶
func SelectableButtons(buttons []ButtonOpts, spacing string) string
SelectableButtons creates a horizontal row of selectable buttons
func SelectableButtonsVertical ¶
func SelectableButtonsVertical(buttons []ButtonOpts, spacing int) string
SelectableButtonsVertical creates a vertical row of selectable buttons
func Status ¶
func Status(opts StatusOpts, width int) string