Skip to content

CatalogCommand

Category: Commands

Source: catalog_command.dart

Top-level glue catalog … subcommands.

refresh fetches the canonical model catalog into the user's cache so ~/.glue/cache/models.yaml overlays the bundled snapshot on next start. show prints the active merged catalog. path reports where each layer is resolved from. open opens the canonical URL in a browser. edit opens the cached models.yaml in $EDITOR.

The /model slash command remains the interactive surface inside a running session; this CLI surface is for scripted setup and diagnostics.

Classes

sealed RefreshOutcome

Outcome of [refreshCatalog]. Exposed so the CLI surface and tests can inspect what happened without scraping stdout.

Constructor

dart
const RefreshOutcome()

RefreshWrote

Constructor

dart
const RefreshWrote({required this.uri, required this.bytes})

Properties

PropertyTypeDescription
uriUri
bytesint

RefreshNotModified

Constructor

dart
const RefreshNotModified({required this.uri})

Properties

PropertyTypeDescription
uriUri

RefreshAllFailed

Constructor

dart
const RefreshAllFailed({required this.failures})

CatalogCommand

Constructor

dart
CatalogCommand()

Properties

PropertyTypeDescription
nameString get
descriptionString get
nameString get
descriptionString get

CatalogRefreshCommand

Constructor

dart
CatalogRefreshCommand({this._fetcher})

Properties

PropertyTypeDescription
nameString get
descriptionString get
invocationString get
nameString get
descriptionString get
invocationString get

Methods

Future<int> run()

CatalogShowCommand

Constructor

dart
CatalogShowCommand()

Properties

PropertyTypeDescription
nameString get
descriptionString get
nameString get
descriptionString get
nameString get
descriptionString get
invocationString get
nameString get
descriptionString get
invocationString get
falsereturn
nameString get
descriptionString get
nameString get
descriptionString get
nameString get
descriptionString get
invocationString get
nameString get
descriptionString get
invocationString get

Methods

Future<int> run()
Future<int> run()
Future<int> run()
Future<int> run()

CatalogPathCommand

Constructor

dart
CatalogPathCommand()

Properties

PropertyTypeDescription
nameString get
descriptionString get
nameString get
descriptionString get

Methods

Future<int> run()

CatalogOpenCommand

Constructor

dart
CatalogOpenCommand()

Properties

PropertyTypeDescription
nameString get
descriptionString get
invocationString get
nameString get
descriptionString get
invocationString get

Methods

Future<int> run()

CatalogEditCommand

Properties

PropertyTypeDescription
nameString get
descriptionString get
invocationString get
nameString get
descriptionString get
invocationString get

Methods

Future<int> run()

Released under the MIT License.