mirror of
https://github.com/unisonweb/unison.git
synced 2024-08-15 13:30:27 +03:00
rename alias.term.force
to debug.alias.term.force
This commit is contained in:
parent
db3d0e73b3
commit
e1b00d9c58
@ -1410,14 +1410,16 @@ aliasTerm =
|
||||
aliasTermForce :: InputPattern
|
||||
aliasTermForce =
|
||||
InputPattern
|
||||
{ patternName = "alias.term.force",
|
||||
{ patternName = "debug.alias.term.force",
|
||||
aliases = [],
|
||||
visibility = I.Hidden,
|
||||
args = [("term to alias", Required, exactDefinitionTermQueryArg), ("alias name", Required, newNameArg)],
|
||||
help = "`alias.term.force foo bar` introduces `bar` with the same definition as `foo`.",
|
||||
help = "`debug.alias.term.force foo bar` introduces `bar` with the same definition as `foo`.",
|
||||
parse = \case
|
||||
[oldName, newName] -> Input.AliasTermI True <$> handleShortHashOrHQSplit'Arg oldName <*> handleSplit'Arg newName
|
||||
_ -> Left . warn $ P.wrap "`alias.term.force` takes two arguments, like `alias.term.force oldname newname`."
|
||||
_ ->
|
||||
Left . warn $
|
||||
P.wrap "`debug.alias.term.force` takes two arguments, like `debug.alias.term.force oldname newname`."
|
||||
}
|
||||
|
||||
aliasType :: InputPattern
|
||||
|
@ -19,9 +19,9 @@ project/main> alias.term lib.builtins.todo foo
|
||||
project/main> ls
|
||||
```
|
||||
|
||||
You can use `alias.term.force` for that.
|
||||
You can use `debug.alias.term.force` for that.
|
||||
|
||||
```ucm
|
||||
project/main> alias.term.force lib.builtins.todo foo
|
||||
project/main> debug.alias.term.force lib.builtins.todo foo
|
||||
project/main> ls
|
||||
```
|
||||
|
@ -28,10 +28,10 @@ project/main> ls
|
||||
2. lib/ (643 terms, 92 types)
|
||||
|
||||
```
|
||||
You can use `alias.term.force` for that.
|
||||
You can use `debug.alias.term.force` for that.
|
||||
|
||||
```ucm
|
||||
project/main> alias.term.force lib.builtins.todo foo
|
||||
project/main> debug.alias.term.force lib.builtins.todo foo
|
||||
|
||||
Done.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user