Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbilas committed Jul 14, 2023
1 parent 98116a7 commit da36ae8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 25 deletions.
24 changes: 0 additions & 24 deletions src/Unity.Cli/Commands_RunGit.cs

This file was deleted.

30 changes: 30 additions & 0 deletions src/Unity.Cli/Commands_RunMonorepo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
static partial class Commands
{
public const string DocUsageMonorepo =
@"Usage:
okunity mr apply [options] [FEATURE...]
Description:
Update git sparse checkout by enabling each selected FEATURE in `mr.yaml`.
Options:
--config CONFIG The path to the monorepo config file; if filename-only, will search up to the repo root [default: mr.yaml]
--show-spec Print the spec that would be used to update the sparse checkout
-n --dry-run Don't actually do anything, just print what would be done
";

public static CliExitCode RunMonorepo(CommandContext context)
{
if (context.CommandLine["apply"].IsTrue)
{
//var config = context.GetConfigString("config");
}

// shouldn't get here
return CliExitCode.ErrorUsage;
}
}

class MonorepoSpec
{
}
2 changes: 1 addition & 1 deletion src/Unity.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ okunity [options] COMMAND [ARG]...
new("projects", "Get info on Unity projects", Commands.DocUsageProjects, Commands.RunProjects),
new("assetdb", "Do things with the asset database", Commands.DocUsageAssetDb, Commands.RunAssetDb),
new("info", "Extract Unity-related info from args", Commands.DocUsageInfo, Commands.RunInfo),
new("git", "Dumping ground for git experiments", Commands.DocUsageGit, Commands.RunGit),
new("mr", "Manage the monorepo", Commands.DocUsageMonorepo, Commands.RunMonorepo),
new("do", "Dumping ground for random commands", Commands.DocUsageDo, Commands.RunDo),
//new("purge", // TODO: purge (logs artifacts shaders, everything, nuclear) (with auto warning if any processes running on the project)
};
Expand Down

0 comments on commit da36ae8

Please sign in to comment.