@@ -12,7 +12,7 @@ namespace TfvcMigrator;
12
12
13
13
public static class Program
14
14
{
15
- public static Task Main ( string [ ] args )
15
+ public static Task < int > Main ( string [ ] args )
16
16
{
17
17
var command = new RootCommand ( "Migrates TFVC source history to idiomatic Git history while preserving branch topology." )
18
18
{
@@ -58,7 +58,7 @@ private static RootPathChange ParseRootPathChange(string token)
58
58
return new RootPathChange ( changeset , token [ ( colonIndex + 1 ) ..] ) ;
59
59
}
60
60
61
- public static async Task MigrateAsync (
61
+ public static async Task < int > MigrateAsync (
62
62
Uri projectCollectionUrl ,
63
63
string rootPath ,
64
64
string authors ,
@@ -78,7 +78,7 @@ public static async Task MigrateAsync(
78
78
if ( Directory . GetFileSystemEntries ( outputDirectory ) . Any ( ) )
79
79
{
80
80
Console . WriteLine ( $ "Cannot create Git repository at { outputDirectory } because the directory is not empty.") ;
81
- return ;
81
+ return 1 ;
82
82
}
83
83
84
84
var authorsLookup = LoadAuthors ( authors ) ;
@@ -131,7 +131,7 @@ pat is not null
131
131
Console . WriteLine ( "An entry must be added to the authors file for each of the following TFVC users:" ) ;
132
132
foreach ( var user in unmappedAuthors )
133
133
Console . WriteLine ( user ) ;
134
- return ;
134
+ return 1 ;
135
135
}
136
136
137
137
Console . WriteLine ( "Downloading changesets and converting to commits..." ) ;
@@ -336,6 +336,7 @@ pat is not null
336
336
}
337
337
338
338
Console . WriteLine ( $ "\r All { changesets . Count } changesets migrated successfully.") ;
339
+ return 0 ;
339
340
}
340
341
341
342
private static ImmutableDictionary < BranchIdentity , ImmutableArray < ( string GitRepositoryPath , TfvcItem DownloadSource ) > > MapItemsToDownloadSources (
0 commit comments