rename alias.term.force to debug.alias.term.force

This commit is contained in:
Mitchell Rosen 2024-06-26 11:23:04 -04:00
parent db3d0e73b3
commit e1b00d9c58
3 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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
```

View File

@ -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.