Module model

Module model 

Source
Expand description

Defines the core data structures and models for the application’s business domain.

This module serves as a central collection point and namespace for the fundamental data types that represent the key entities and concepts within the application, such as commands and their associated variables.

Structs§

Command
DynamicCommand
A command containing variables
SearchCommandsFilter
Represents the filtering criteria for searching for commands
Variable
Represents a variable from a command
VariableValue
Type to represent a variable value

Enums§

CommandPart
Represents a part of a command, which can be either text, a variable, or a variable value
SearchMode
Determines the strategy used for searching commands
VariableFunction
Functions that can be applied to variable values
VariableSuggestion
Suggestion for a variable value

Constants§

CATEGORY_USER
Category for user defined commands
CATEGORY_WORKSPACE
Category for workspace defined commands
SOURCE_AI
Source for ai suggested commands
SOURCE_IMPORT
Source for imported commands
SOURCE_TLDR
Source for tldr fetched commands
SOURCE_USER
Source for user defined commands
SOURCE_WORKSPACE
Source for workspace-level commands

Functions§

idempotent_percent_encode
Idempotently percent-encodes a string.