@@ -15,9 +15,7 @@ public class Program
1515 private const string BuildProperties = nameof ( BuildProperties ) ;
1616
1717 public static async Task < int > Main ( string [ ] args ) => await Bootstrapper
18- . CreateDefault ( args , DefaultsToAdd . All & ~ DefaultsToAdd . Commands )
19-
20- // Configure build settings for the correct version
18+ . CreateDefault ( args )
2119 . ConfigureSettings ( x =>
2220 {
2321 string version = File . ReadAllLines ( "../../ReleaseNotes.md" ) [ 0 ] . TrimStart ( '#' ) . Trim ( ) ;
@@ -28,22 +26,7 @@ public static async Task<int> Main(string[] args) => await Bootstrapper
2826 x [ BuildVersion ] = version ;
2927 x [ BuildProperties ] = $ "-p:Version={ version } -p:AssemblyVersion={ version } -p:FileVersion={ version } ";
3028 } )
31-
32- // Add build commands to the CLI
33- . AddBuildCommand ( "build" , "Builds all projects." , nameof ( Build ) )
34- . AddBuildCommand ( "test" , "Builds and tests all projects." , nameof ( Test ) )
35- . AddBuildCommand ( "pack" , "Packs the packages." , nameof ( Pack ) )
36- . AddBuildCommand ( "zip" , "Zips the binaries." , nameof ( Zip ) )
37- . AddBuildCommand ( "publish" , "Publishes the packages and documentation site." , nameof ( Publish ) )
38-
39- // Add pipelines
40- . AddPipeline < Build > ( )
41- . AddPipeline < Test > ( )
42- . AddPipeline < Pack > ( )
43- . AddPipeline < Zip > ( )
44- . AddPipeline < Publish > ( )
45-
46- // Run the app
29+ . AddPipelines < Program > ( )
4730 . RunAsync ( ) ;
4831
4932 private static DirectoryPath GetBuildPath ( IDocument doc , IExecutionContext ctx ) =>
0 commit comments