Skip to content

Commit

Permalink
Merge branch 'minSolution' of https://github.com/VUISIS/formula into …
Browse files Browse the repository at this point in the history
…minSolution

merging
  • Loading branch information
VeraZhang0311 committed Jul 1, 2024
2 parents f3081c5 + 3efd12b commit 279b6d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Src/CommandLine/CommandInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private enum WatchLevelKind { Off, On, Prompt };
private const string WatchMsg = "Use: watch [off | on | prompt] to control watch behavior";
private const string CoreMsg = "Prints reduced rule set for domains / transforms. Use: core module_name";
private const string DowngradeMsg = "Attempts to downgrade a (partial) model to Formula V1. Use: downgrade module_name";
private const string FetchConstraintsMsg = "Attemps to fetch the constraints in the domain";


private SpinLock cmdLock = new SpinLock();
Expand Down Expand Up @@ -325,6 +326,10 @@ public CommandInterface(IMessageSink sink, IChooser chooser, EnvParams envParams
cmdMap.Add(interactiveCmd.Name, interactiveCmd);
cmdMap.Add(interactiveCmd.ShortName, interactiveCmd);

var fetchConstraintsCmd = new Command("constraints", "ct", DoFetchConstraints, FetchConstraintsMsg);
cmdMap.Add(fetchConstraintsCmd.Name, fetchConstraintsCmd);
cmdMap.Add(fetchConstraintsCmd.ShortName, fetchConstraintsCmd);

taskManager = new TaskManager();
}

Expand Down Expand Up @@ -2131,6 +2136,11 @@ private void DoInteractiveHelp(string s)
}
}

private void DoFetchConstraints(string s)
{

}

private void DoConfigHelp(string s)
{
sink.WriteMessageLine("Use collections to bind plugins to names.");
Expand Down

0 comments on commit 279b6d2

Please sign in to comment.