File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace System . CommandLine
9
9
{
10
+ /// <summary>
11
+ /// A command representing an application entry point.
12
+ /// </summary>
10
13
public class RootCommand : Command
11
14
{
15
+ /// <summary>
16
+ /// Create a new instance of RootCommand
17
+ /// </summary>
18
+ /// <param name="description">The description of the command shown in help.</param>
12
19
public RootCommand ( string description = "" ) : base ( ExecutableName , description )
13
20
{
14
21
}
15
22
23
+ /// <summary>
24
+ /// The name of the command. Defaults to the executable name.
25
+ /// </summary>
16
26
public override string Name
17
27
{
18
28
get => base . Name ;
@@ -42,8 +52,14 @@ private static Assembly GetAssembly() =>
42
52
Assembly . GetEntryAssembly ( ) ??
43
53
Assembly . GetExecutingAssembly ( ) ;
44
54
55
+ /// <summary>
56
+ /// The name of the currently running executable.
57
+ /// </summary>
45
58
public static string ExecutableName => _executableName . Value ;
46
59
60
+ /// <summary>
61
+ /// The path to the currently running executable.
62
+ /// </summary>
47
63
public static string ExecutablePath => _executablePath . Value ;
48
64
}
49
65
}
You can’t perform that action at this time.
0 commit comments