Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit 206dcd7

Browse files
committed
refactor: теперь команды сами проставляю Workspace и проверяют yaml
1 parent 9af44d7 commit 206dcd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Cement.Cli.Commands/UsagesBuildCommand.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public UsagesBuildCommand(ConsoleWriter consoleWriter, IUsagesProvider usagesPro
3838
}
3939

4040
public override bool MeasureElapsedTime { get; set; } = true;
41-
public override CommandLocation Location { get; set; } = CommandLocation.RootModuleDirectory;
4241

4342
public override string Name => "build";
4443
public override string HelpMessage => @"";
@@ -54,6 +53,8 @@ protected override UsagesBuildCommandOptions ParseArgs(string[] args)
5453

5554
protected override int Execute(UsagesBuildCommandOptions options)
5655
{
56+
CommandHelper.SetWorkspace(CommandLocation.RootModuleDirectory);
57+
5758
cwd = Directory.GetCurrentDirectory();
5859
workspace = Directory.GetParent(cwd).FullName;
5960
moduleName = Path.GetFileName(cwd);

0 commit comments

Comments
 (0)