Skip to content

Commit

Permalink
Merge pull request #2997 from unisonweb/cp/hidden-inputs
Browse files Browse the repository at this point in the history
Add ability to hide ucm commands until we're ready to release them.
  • Loading branch information
ChrisPenner committed Mar 29, 2022
2 parents d9c339c + eea5128 commit 12731aa
Show file tree
Hide file tree
Showing 2 changed files with 180 additions and 89 deletions.
4 changes: 4 additions & 0 deletions unison-cli/src/Unison/CommandLine/InputPattern.hs
Expand Up @@ -23,9 +23,13 @@ data IsOptional
| OnePlus -- 1 or more, at the end
deriving (Show, Eq)

data Visibility = Hidden | Visible
deriving (Show, Eq, Ord)

data InputPattern = InputPattern
{ patternName :: String,
aliases :: [String],
visibility :: Visibility, -- Allow hiding certain commands when debugging or work-in-progress
argTypes :: [(IsOptional, ArgumentType)],
help :: P.Pretty CT.ColorText,
parse :: [String] -> Either (P.Pretty CT.ColorText) Input
Expand Down

0 comments on commit 12731aa

Please sign in to comment.