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.
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 ¶
- Constants
- func CmdHandler(msg tea.Msg) tea.Cmd
- func ExecShell(ctx context.Context, cmdStr string, callback tea.ExecCallback) tea.Cmd
- func ReportError(err error) tea.Cmd
- func ReportInfo(info string) tea.Cmd
- func ReportWarn(warn string) tea.Cmd
- type ClearStatusMsg
- type Cursor
- type InfoMsg
- type InfoType
- type Model
Constants ¶
const ( InfoTypeInfo = uiutil.InfoTypeInfo InfoTypeSuccess = uiutil.InfoTypeSuccess InfoTypeWarn = uiutil.InfoTypeWarn InfoTypeError = uiutil.InfoTypeError InfoTypeUpdate = uiutil.InfoTypeUpdate )
Variables ¶
This section is empty.
Functions ¶
func CmdHandler ¶
CmdHandler wraps a message in a command that returns that message.
func ExecShell ¶
ExecShell parses a shell command string and executes it with exec.Command. Uses shell.Fields for proper handling of shell syntax like quotes and arguments while preserving TTY handling for terminal editors.
func ReportInfo ¶
func ReportWarn ¶
Types ¶
type ClearStatusMsg ¶
type ClearStatusMsg = uiutil.ClearStatusMsg