-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LaunchProfile with '--launch-profile' and '-lp' (#193)
This allows you to select which launch profile to use when aspir8 builds the aspire manifest file, allowing you to handle custom environment builds individually for the same AppHost project. Implementing this satisfies #189
- Loading branch information
1 parent
c18c899
commit 0a7212b
Showing
12 changed files
with
57 additions
and
8 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 |
---|---|---|
|
@@ -75,4 +75,5 @@ a Helm chart is what's classed as an "Ejected Deployment" and is not managed by | |
| --private-registry-password | | `ASPIRATE_PRIVATE_REGISTRY_PASSWORD` | The password for the private registry. This is required if passing `--private-registry`. | | ||
| --private-registry-email | | `ASPIRATE_PRIVATE_REGISTRY_EMAIL` | The email for the private registry. This is purely optional and will default to `[email protected]`. | | ||
| --include-dashboard | | `ASPIRATE_INCLUDE_DASHBOARD` | Boolean flag to specify if the Aspire dashboard should also be included in deployments. | | ||
| --compose-build | | | Can be included one or more times to set certain dockerfile resource building to be handled by the compose file. This will skip build and push in aspirate. | | ||
| --compose-build | | | Can be included one or more times to set certain dockerfile resource building to be handled by the compose file. This will skip build and push in aspirate. | | ||
| --launch-profile | -lp | 'ASPIRATE_LAUNCH_PROFILE' | The launch profile to use when building the Aspire Manifest. | |
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 |
---|---|---|
|
@@ -44,4 +44,5 @@ This deletes anything added to the Namespace within the state file, and removes | |
| --private-registry-password | | `ASPIRATE_PRIVATE_REGISTRY_PASSWORD` | The password for the private registry. This is required if passing `--private-registry`. | | ||
| --private-registry-email | | `ASPIRATE_PRIVATE_REGISTRY_EMAIL` | The email for the private registry. This is purely optional and will default to `[email protected]`. | | ||
| --include-dashboard | | `ASPIRATE_INCLUDE_DASHBOARD` | Boolean flag to specify if the Aspire dashboard should also be included in deployments. | | ||
| --clear-namespace | | `ASPIRATE_ALLOW_CLEAR_NAMESPACE` | Boolean flag to specify the specified namespace should automatically be cleaned during a deployment. | | ||
| --clear-namespace | | `ASPIRATE_ALLOW_CLEAR_NAMESPACE` | Boolean flag to specify the specified namespace should automatically be cleaned during a deployment. | | ||
| --launch-profile | -lp | 'ASPIRATE_LAUNCH_PROFILE' | The launch profile to use when building the Aspire Manifest. | |
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
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,20 @@ | ||
namespace Aspirate.Commands.Options; | ||
|
||
public sealed class LaunchProfileOption : BaseOption<string?> | ||
{ | ||
private static readonly string[] _aliases = | ||
{ | ||
"-lp", | ||
"--launch-profile" | ||
}; | ||
|
||
private LaunchProfileOption() : base(_aliases, "ASPIRATE_LAUNCH_PROFILE", null) | ||
{ | ||
Name = nameof(ICommandOptions.LaunchProfile); | ||
Description = "The launch profile to use when building the aspire manifest from the AppHost."; | ||
Arity = ArgumentArity.ExactlyOne; | ||
IsRequired = false; | ||
} | ||
|
||
public static LaunchProfileOption Instance { get; } = new(); | ||
} |
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
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
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