Foundry.CommandLine¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.CommandLine(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for command line interface implementations.
Foundry.CommandLineprovides the core interface for command line operations including command parsing, execution, and communication with remote services. Concrete implementations handle different command line modes and provide unified access to Foundry functionality from the terminal.- classmethod new()¶
- Return type:
- clear_progress()¶
- dup_auth_provider()¶
- Return type:
Gets an auth provider for this command line client if possible.
Currrently, this only returns an auth provider if the command line client provides a TTY.
- print_list(model, entries, format, expected_type)¶
- Parameters:
model (
Gio.ListModel) –entries (
Foundry.ObjectSerializerEntry) –format (
Foundry.ObjectSerializerFormat) –expected_type (
GObject.GType) –
- print_object(object, entries, format)¶
- Parameters:
object (
GObject.Object) –entries (
Foundry.ObjectSerializerEntry) –format (
Foundry.ObjectSerializerFormat) –
- request_input(input)¶
- Parameters:
input (
Foundry.Input) – a [class`Foundry`.Input]- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error.
- Return type:
Queries the user for the information requested in input.
- run(argv)¶
- Parameters:
argv (
str) –- Returns:
a
Dex.Futurethat resolves to an int- Return type:
Runs the command line.