Skip to content

Commit 359ac31

Browse files
Merge pull request #26 from Techsola/10_generate_authors_file
Auto-generate authors file if it does not exist
2 parents 6c6de02 + 56bde6b commit 359ac31

File tree

3 files changed

+272
-220
lines changed

3 files changed

+272
-220
lines changed

Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Arguments:
3939
Options:
4040
--authors <authors> (REQUIRED) Path to an authors file with lines mapping TFVC usernames to
4141
Git authors, e.g.: DOMAIN\John = John Doe <john@doe.com>
42+
Auto-generates file at provided path with placeholders if
43+
not found, eg: DOMAIN\John = John Doe <email>
4244
--out-dir <out-dir> The directory path at which to create a new Git repository.
4345
Defaults to the last segment in the root path under the
4446
current directory.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace TfvcMigrator;
2+
public sealed class CommandLineException : Exception
3+
{
4+
public int ExitCode { get; }
5+
public CommandLineException(string message, int exitCode = 1) : base(message)
6+
{
7+
ExitCode = exitCode;
8+
}
9+
}

0 commit comments

Comments
 (0)