-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
easier to understand messages / prompts for user (#361)
### Why Making it easier to update prompt text and not showing exception messages users likely won't understand Swapped the order of commands and options for most useful to likely least Chenfeng had an existing branch for this and I have just fixed the merge issues --------- Co-authored-by: Chenfeng Bao <[email protected]>
- Loading branch information
Showing
9 changed files
with
139 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
namespace D2L.Bmx; | ||
|
||
/// <remarks> | ||
/// This exception is used to display an error message to the user. | ||
/// Do not include internal implementation details or very technical info in the exception message. | ||
/// If there's no user facing info to convey, use a different exception type. | ||
/// </remarks> | ||
internal class BmxException : Exception { | ||
public BmxException( string message ) : base( message ) { } | ||
public BmxException( string message, Exception innerException ) : base( message, innerException ) { } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace D2L.Bmx; | ||
|
||
internal static class ParameterDescriptions { | ||
public const string Org = "Okta org short name or domain name"; | ||
public const string User = "Okta username"; | ||
public const string Password = "Okta password"; | ||
public const string Account = "AWS account name"; | ||
public const string Role = "AWS role name"; | ||
public const string Duration = "AWS session duration in minutes"; | ||
public const string Profile = "AWS profile name"; | ||
public const string Output = "Custom path to the AWS credentials file"; | ||
public const string Format = "Output format of AWS credentials"; | ||
public const string NonInteractive = "Run non-interactively without showing any prompts"; | ||
} |
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,12 @@ | ||
namespace D2L.Bmx; | ||
|
||
internal static class PrintFormat { | ||
public static readonly HashSet<string> All = new( StringComparer.OrdinalIgnoreCase ) { | ||
Bash, | ||
PowerShell, | ||
Json, | ||
}; | ||
public const string Bash = "Bash"; | ||
public const string PowerShell = "PowerShell"; | ||
public const string Json = "JSON"; | ||
} |
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
Oops, something went wrong.