-
Notifications
You must be signed in to change notification settings - Fork 472
Expand file tree
/
Copy pathInitNativeSubcommandAction.cs
More file actions
32 lines (27 loc) · 1.12 KB
/
InitNativeSubcommandAction.cs
File metadata and controls
32 lines (27 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Fclp;
namespace Azure.Functions.Cli.Actions.LocalActions
{
[Action(Name = "init native", ParentCommandName = "init", ShowInHelp = true, HelpText = "Options specific to native runtime apps when running func init")]
internal class InitNativeSubcommandAction : BaseAction
{
public override ICommandLineParserResult ParseArgs(string[] args)
{
Parser
.Setup<string>('l', "language")
.WithDescription("The language for the function app. Options: golang.")
.Callback(_ => { });
Parser
.Setup<bool>("skip-go-mod-tidy")
.WithDescription("Skip running 'go mod tidy' after project creation.")
.Callback(_ => { });
return base.ParseArgs(args);
}
public override Task RunAsync()
{
// This method is never called - the main InitAction handles execution
return Task.CompletedTask;
}
}
}