Documentation
¶
Overview ¶
Package validate provides validation functions for iTerm2 CLI command inputs.
This package contains all validation logic for:
- Resource IDs (sessions, windows, tabs)
- Output formats
- Timeouts and durations
- Coordinates and values
- Hex strings and data
- Resource existence checks
All validation functions return cmderr.StandardError for consistent error handling.
Index ¶
- func Format(format string) error
- func HexData(s string) ([]byte, error)
- func HexString(s string) error
- func NonEmpty(value, name string) error
- func OneOf(value string, options []string, name string) error
- func SessionExists(ctx context.Context, client *client.Client, id string) error
- func TabExists(ctx context.Context, client *client.Client, id string) error
- func TabID(id string) error
- func WindowExists(ctx context.Context, client *client.Client, id string) error
- func WindowID(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SessionExists ¶
SessionExists checks if a session exists.
func TabID ¶
TabID validates a tab ID format. Tab IDs from iTerm2 are simple numeric strings, not UUIDs
func WindowExists ¶
WindowExists checks if a window exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.