-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
useful if you need to make edits to containers, and dont want to lose your custom edits to manifest files
- Loading branch information
1 parent
a3740e7
commit e1a0968
Showing
6 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Aspirate.Cli.Commands.Build; | ||
|
||
public sealed class BuildCommand : BaseCommand<BuildOptions, BuildCommandHandler> | ||
{ | ||
public BuildCommand() : base("build", "Builds and pushes containers") | ||
{ | ||
AddOption(SharedOptions.AspireProjectPath); | ||
AddOption(SharedOptions.NonInteractive); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Aspirate.Cli.Commands.Build; | ||
|
||
public sealed class BuildCommandHandler(IServiceProvider serviceProvider) : BaseCommandOptionsHandler<BuildOptions>(serviceProvider) | ||
{ | ||
public override Task<int> HandleAsync(BuildOptions options) => | ||
ActionExecutor | ||
.QueueAction(LoadConfigurationAction.ActionKey) | ||
.QueueAction(GenerateAspireManifestAction.ActionKey) | ||
.QueueAction(LoadAspireManifestAction.ActionKey) | ||
.QueueAction(PopulateContainerDetailsAction.ActionKey) | ||
.QueueAction(BuildAndPushContainersAction.ActionKey) | ||
.ExecuteCommandsAsync(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Aspirate.Cli.Commands.Build; | ||
|
||
public sealed class BuildOptions : ICommandOptions | ||
{ | ||
public string ProjectPath { get; set; } = AspirateLiterals.DefaultAspireProjectPath; | ||
public bool NonInteractive { get; set; } = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters