unison/unison-src/transcripts/alias-many.output.md

71 lines
2.1 KiB
Markdown
Raw Normal View History

2020-02-14 02:57:17 +03:00
The `alias.many` command can be used to copy definitions from the current namespace into your curated one.
2020-02-14 03:01:42 +03:00
The names that will be used in the target namespace are the names you specify, relative to the current namespace:
2020-02-14 02:57:17 +03:00
```scratch
/main> help alias.many
2020-02-14 02:57:17 +03:00
alias.many (or copy)
`alias.many <relative1> [relative2...] <namespace>` creates aliases `relative1`, `relative2`, ...
in the namespace `namespace`.
`alias.many foo.foo bar.bar .quux` creates aliases `.quux.foo.foo` and `.quux.bar.bar`.
2020-02-14 02:57:17 +03:00
```
Let's try it!
```ucm
scratch/main> alias.many stuff.List.adjacentPairs stuff.List.all stuff.List.any stuff.List.chunk stuff.List.chunksOf stuff.List.dropWhile stuff.List.first stuff.List.init stuff.List.intersperse stuff.List.isEmpty stuff.List.last stuff.List.replicate stuff.List.splitAt stuff.List.tail stuff.List.takeWhile .mylib
2020-02-14 02:57:17 +03:00
Nothing changed in .mylib .
⚠️
2020-02-14 02:57:17 +03:00
The following names were not found in the codebase. Check your spelling.
stuff.List.adjacentPairs
stuff.List.all
stuff.List.any
stuff.List.chunk
stuff.List.chunksOf
stuff.List.dropWhile
stuff.List.first
stuff.List.init
stuff.List.intersperse
stuff.List.isEmpty
stuff.List.last
stuff.List.replicate
stuff.List.splitAt
stuff.List.tail
stuff.List.takeWhile
2020-02-14 02:57:17 +03:00
```
2020-02-14 02:57:17 +03:00
```ucm
scratch/main> alias.many stuff.List.adjacentPairs stuff.List.all stuff.List.any stuff.List.chunk stuff.List.chunksOf stuff.List.dropWhile stuff.List.first stuff.List.init stuff.List.intersperse stuff.List.isEmpty stuff.List.last stuff.List.replicate stuff.List.splitAt stuff.List.tail stuff.List.takeWhile .mylibscratch/main> find-in mylib
```
🛑
The transcript failed due to an error in the stanza above. The error is:
⚠️
2020-02-14 02:57:17 +03:00
The following names were not found in the codebase. Check your spelling.
stuff.List.adjacentPairs
stuff.List.all
stuff.List.any
stuff.List.chunk
stuff.List.chunksOf
stuff.List.dropWhile
stuff.List.first
stuff.List.init
stuff.List.intersperse
stuff.List.isEmpty
stuff.List.last
stuff.List.replicate
stuff.List.splitAt
stuff.List.tail
stuff.List.takeWhile
2020-02-14 02:57:17 +03:00