BadScript 2
Loading...
Searching...
No Matches
Verb_Fakes.cs
Go to the documentation of this file.
1// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
2
3using System.Collections.Generic;
4
6{
7 [Verb("add", HelpText = "Add file contents to the index.")]
8 public class Add_Verb
9 {
10 [Option('p', "patch", SetName = "mode-p",
11 HelpText = "Interactively choose hunks of patch between the index and the work tree and add them to the index.")]
12 public bool Patch { get; set; }
13
14 [Option('f', "force", SetName = "mode-f",
15 HelpText = "Allow adding otherwise ignored files.")]
16 public bool Force { get; set; }
17
18 [Value(0)]
19 public string FileName { get; set; }
20 }
21 [Verb("add", isDefault:true,HelpText = "Add file contents to the index.")]
23 {
24 [Option('p', "patch", SetName = "mode-p",
25 HelpText = "Interactively choose hunks of patch between the index and the work tree and add them to the index.")]
26 public bool Patch { get; set; }
27
28 [Option('f', "force", SetName = "mode-f",
29 HelpText = "Allow adding otherwise ignored files.")]
30 public bool Force { get; set; }
31
32 [Value(0)]
33 public string FileName { get; set; }
34 }
35 [Verb("commit", HelpText = "Record changes to the repository.")]
36 public class Commit_Verb
37 {
38 [Option('p', "patch",
39 HelpText = "Use the interactive patch selection interface to chose which changes to commit.")]
40 public bool Patch { get; set; }
41
42 [Option("amend", HelpText = "Used to amend the tip of the current branch.")]
43 public bool Amend { get; set; }
44
45 [Option('m', "message", HelpText = "Use the given message as the commit message.")]
46 public string Message { get; set; }
47 }
48
49 [Verb("clone", HelpText = "Clone a repository into a new directory.")]
50 public class Clone_Verb
51 {
52 [Option("no-hardlinks",
53 HelpText = "Optimize the cloning process from a repository on a local filesystem by copying files.")]
54 public bool NoHardLinks { get; set; }
55
56 [Option('q', "quiet",
57 HelpText = "Suppress summary message.")]
58 public bool Quiet { get; set; }
59
60 [Value(0)]
61 public IEnumerable<string> Urls { get; set; }
62 }
63
64 [Verb("sequence", HelpText = "Sequence options test.")]
65 public class SequenceOptions
66 {
67 [Option("long-seq", Separator = ';')]
68 public IEnumerable<long> LongSequence { get; set; }
69
70 [Option('s', Min = 1, Max = 100, Separator = ',')]
71 public IEnumerable<string> StringSequence { get; set; }
72 }
73
74 abstract class Base_Class_For_Verb
75 {
76 [Option('p', "patch", SetName = "mode",
77 HelpText = "Interactively choose hunks of patch between the index and the work tree and add them to the index.")]
78 public bool Patch { get; set; }
79
80 [Value(0)]
81 public string FileName { get; set; }
82 }
83
84 [Verb("derivedadd", HelpText = "Add file contents to the index.")]
86 {
87 [Option('f', "force", SetName = "mode",
88 HelpText = "Allow adding otherwise ignored files.")]
89 public bool Force { get; set; }
90 }
91
92 [Verb("test")]
94 {
95 [Option('o', "opt")]
96 public string OptValue { get; set; }
97
98 [Value(0)]
99 public string PosValue { get; set; }
100 }
101
102 [Verb("default1", true)]
104 {
105 [Option('t', "test-one")]
106 public bool TestValueOne { get; set; }
107 }
108
109 [Verb("default2", true)]
111 {
112 [Option('t', "test-two")]
113 public bool TestValueTwo { get; set; }
114 }
115
116 [Verb(null, true)]
118 {
119 [Option('t', "test")]
120 public bool TestValue { get; set; }
121 }
122}
IEnumerable< string > Urls
Definition Verb_Fakes.cs:61
IEnumerable< string > StringSequence
Definition Verb_Fakes.cs:71