mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +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
|
||||||
aliasTermForce =
|
aliasTermForce =
|
||||||
InputPattern
|
InputPattern
|
||||||
{ patternName = "alias.term.force",
|
{ patternName = "debug.alias.term.force",
|
||||||
aliases = [],
|
aliases = [],
|
||||||
visibility = I.Hidden,
|
visibility = I.Hidden,
|
||||||
args = [("term to alias", Required, exactDefinitionTermQueryArg), ("alias name", Required, newNameArg)],
|
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
|
parse = \case
|
||||||
[oldName, newName] -> Input.AliasTermI True <$> handleShortHashOrHQSplit'Arg oldName <*> handleSplit'Arg newName
|
[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
|
aliasType :: InputPattern
|
||||||
|
@ -19,9 +19,9 @@ project/main> alias.term lib.builtins.todo foo
|
|||||||
project/main> ls
|
project/main> ls
|
||||||
```
|
```
|
||||||
|
|
||||||
You can use `alias.term.force` for that.
|
You can use `debug.alias.term.force` for that.
|
||||||
|
|
||||||
```ucm
|
```ucm
|
||||||
project/main> alias.term.force lib.builtins.todo foo
|
project/main> debug.alias.term.force lib.builtins.todo foo
|
||||||
project/main> ls
|
project/main> ls
|
||||||
```
|
```
|
||||||
|
@ -28,10 +28,10 @@ project/main> ls
|
|||||||
2. lib/ (643 terms, 92 types)
|
2. lib/ (643 terms, 92 types)
|
||||||
|
|
||||||
```
|
```
|
||||||
You can use `alias.term.force` for that.
|
You can use `debug.alias.term.force` for that.
|
||||||
|
|
||||||
```ucm
|
```ucm
|
||||||
project/main> alias.term.force lib.builtins.todo foo
|
project/main> debug.alias.term.force lib.builtins.todo foo
|
||||||
|
|
||||||
Done.
|
Done.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user