mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 08:18:20 -04:00
Allows us to get rid of a ton of abstraction in SboxBuild, and gets rid of a lot of GitHub API plumbing. I feel like now that our workflows are more complex it's nicer to just use GitHub directly rather than having our own pipeline abstraction in SboxBuild. This way we get nicer logging and error reporting, which we can\t achieve through GitHub API.
24 lines
705 B
C#
24 lines
705 B
C#
using static Facepunch.Constants;
|
|
|
|
namespace Facepunch.Steps;
|
|
|
|
internal static class FormatAll
|
|
{
|
|
internal static ExitCode Run( bool verifyOnly = false )
|
|
{
|
|
if ( new Format( Solutions.Engine, Format.Mode.Full, verifyOnly ).Run() != ExitCode.Success )
|
|
return ExitCode.Failure;
|
|
|
|
if ( new Format( Solutions.Toolbase, Format.Mode.Whitespace, verifyOnly ).Run() != ExitCode.Success )
|
|
return ExitCode.Failure;
|
|
|
|
if ( new Format( Solutions.Menu, Format.Mode.Whitespace, verifyOnly ).Run() != ExitCode.Success )
|
|
return ExitCode.Failure;
|
|
|
|
if ( new Format( Solutions.BuildTools, Format.Mode.Full, verifyOnly ).Run() != ExitCode.Success )
|
|
return ExitCode.Failure;
|
|
|
|
return ExitCode.Success;
|
|
}
|
|
}
|