Foundry.Command¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
[ |
r/w/en |
||
r/w/en |
|||
[ |
r/w/en |
||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.Command(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A command that may be run in a shell environment.
- classmethod new(context)¶
- Parameters:
context (
Foundry.Context) –- Return type:
- can_default()¶
- Returns:
Trueif self can be the default command- priority:
a location for the priority, or
None
- Return type:
Checks to see if self is suitable to be run as the default command when running a project. The priority indicates if it should take priority over other commands which can be default. The highest priority value wins.
- dup_environ()¶
- get_locality()¶
- Return type:
- prepare(pipeline, launcher, phase)¶
- Parameters:
pipeline (
Foundry.BuildPipelineorNone) – an optional [class`Foundry`.BuildPipeline]launcher (
Foundry.ProcessLauncher) – a [class`Foundry`.ProcessLauncher]phase (
Foundry.BuildPipelinePhase) – the phase of the pipeline.
- Returns:
a [class`Dex`.Future] that resolves to any value when the preparation has completed. Otherwise rejects with error.
- Return type:
Prepares launcher to run self.
If pipeline is set, the command may use that to run the command within a particular environment based on the locality settings.
- set_locality(locality)¶
- Parameters:
locality (
Foundry.CommandLocality) –
- do_can_default() virtual¶
- Returns:
Trueif self can be the default command- priority:
a location for the priority, or
None
- Return type:
Checks to see if self is suitable to be run as the default command when running a project. The priority indicates if it should take priority over other commands which can be default. The highest priority value wins.
- do_prepare(pipeline, launcher, phase) virtual¶
- Parameters:
pipeline (
Foundry.BuildPipelineorNone) – an optional [class`Foundry`.BuildPipeline]launcher (
Foundry.ProcessLauncher) – a [class`Foundry`.ProcessLauncher]phase (
Foundry.BuildPipelinePhase) – the phase of the pipeline.
- Returns:
a [class`Dex`.Future] that resolves to any value when the preparation has completed. Otherwise rejects with error.
- Return type:
Prepares launcher to run self.
If pipeline is set, the command may use that to run the command within a particular environment based on the locality settings.
Property Details¶
- Foundry.Command.props.cwd¶
- Name:
cwd- Type:
- Default Value:
- Flags:
- Foundry.Command.props.id¶
- Name:
id- Type:
- Default Value:
- Flags:
- Foundry.Command.props.locality¶
- Name:
locality- Type:
- Default Value:
- Flags:
- Foundry.Command.props.name¶
- Name:
name- Type:
- Default Value:
- Flags:
- Foundry.Command.props.provider¶
- Name:
provider- Type:
- Default Value:
- Flags: