|
4 | 4 | namespace Microsoft.Authentication.AzureAuth.Commands |
5 | 5 | { |
6 | 6 | using System.IO.Abstractions; |
7 | | - |
8 | 7 | using McMaster.Extensions.CommandLineUtils; |
9 | | - |
10 | 8 | using Microsoft.Extensions.Logging; |
11 | 9 | using Microsoft.Office.Lasso.Interfaces; |
12 | 10 | using Microsoft.Office.Lasso.Telemetry; |
13 | 11 |
|
14 | 12 | /// <summary> |
15 | 13 | /// The command main class parses commands and dispatches to the corresponding methods. |
16 | 14 | /// </summary> |
17 | | - [Command(Name = "azureauth", Description = "A CLI interface to MSAL (Microsoft Authentication Library)." + |
18 | | - "\n\n⚠️ NOTICE: Use `azureauth aad [options]`.\n⚠️ The top-level azureauth command is deprecated and will print help text soon." + |
19 | | - "\n\n\u001b[31m-- azureauth [options]\u001b[0m" + |
20 | | - "\n\u001b[32m++ azureauth aad [options]\u001b[0m\n")] |
| 15 | + [Command(Name = "azureauth", Description = "A CLI interface to MSAL (Microsoft Authentication Library).")] |
21 | 16 | [Subcommand(typeof(CommandAad))] |
22 | | - //[Subcommand(typeof(CommandAdo))] // TODO: Enable Ado commands |
| 17 | + [Subcommand(typeof(CommandAdo))] |
23 | 18 | [Subcommand(typeof(CommandInfo))] |
24 | | - public class CommandAzureAuth : CommandAad |
| 19 | + public class CommandAzureAuth |
25 | 20 | { |
26 | | -#pragma warning disable SA1648 // inheritdoc should be used with inheriting class |
27 | | - /// <inheritdoc/> |
28 | | - public CommandAzureAuth(CommandExecuteEventData eventData, ITelemetryService telemetryService, ILogger<CommandAzureAuth> logger, IFileSystem fileSystem, IEnv env) |
29 | | -#pragma warning restore SA1648 // inheritdoc should be used with inheriting class |
30 | | - : base(eventData, telemetryService, logger, fileSystem, env) |
| 21 | + /// <summary> Execute the command. </summary> |
| 22 | + /// <param name="app">The current command instance.</param> |
| 23 | + /// <returns>0.</returns> |
| 24 | + public int OnExecute(CommandLineApplication app) |
31 | 25 | { |
| 26 | + app.ShowHelp(); |
| 27 | + return 0; |
32 | 28 | } |
33 | 29 | } |
34 | 30 | } |
0 commit comments