Skip to content

Commit

Permalink
Merge pull request #26 from Techsola/10_generate_authors_file
Browse files Browse the repository at this point in the history
Auto-generate authors file if it does not exist
  • Loading branch information
viningtechsola committed May 12, 2023
2 parents 6c6de02 + 56bde6b commit 359ac31
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 220 deletions.
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Arguments:
Options:
--authors <authors> (REQUIRED) Path to an authors file with lines mapping TFVC usernames to
Git authors, e.g.: DOMAIN\John = John Doe <john@doe.com>
Auto-generates file at provided path with placeholders if
not found, eg: DOMAIN\John = John Doe <email>
--out-dir <out-dir> The directory path at which to create a new Git repository.
Defaults to the last segment in the root path under the
current directory.
Expand Down
9 changes: 9 additions & 0 deletions src/TfvcMigrator/CommandLineException.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace TfvcMigrator;
public sealed class CommandLineException : Exception
{
public int ExitCode { get; }
public CommandLineException(string message, int exitCode = 1) : base(message)
{
ExitCode = exitCode;
}
}

0 comments on commit 359ac31

Please sign in to comment.