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
CommandTemplate
A command containing variables
ExportStats
Statistics collected when exporting
ImportStats
Statistics collected when importing
SearchCommandsFilter
Represents the filtering criteria for searching for commands
Variable
Represents a variable from a command template
VariableCompletion
Type to represent a variable completion
VariableValue
Type to represent a variable value

Enums§

ImportExportItem
A unified data model to handle both commands and completions in a single stream
SearchMode
Determines the strategy used for searching commands
TemplatePart
Represents a part of a command, which can be either text, a variable, or a variable value
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
Idempotent percent-encodes a string.

Type Aliases§

ImportExportStream
Stream of results of ImportExportItem