unison/unison-src/transcripts/numbered-args.md
Paul Chiusano b7bf12081b
Add Author and License metadata types to builtins (#1228)
* Fix #1056 and add author and license metadata types

* Transcript demonstrating that the codebase is empty at first
2020-02-13 10:59:53 -05:00

730 B

Using numbered arguments in UCM

.> builtins.merge

First lets add some contents to our codebase.

foo = "foo"
bar = "bar"
baz = "baz"
qux = "qux"
quux = "quux"
corge = "corge"
.temp> add

We can get the list of things in the namespace, and UCM will give us a numbered list:

.temp> find

We can ask to view the second element of this list:

.temp> find
.temp> view 2

And we can view multiple elements by separating with spaces:

.temp> find
.temp> view 2 3 5

We can also ask for a range:

.temp> find
.temp> view 2-4

And we can ask for multiple ranges and use mix of ranges and numbers:

.temp> find
.temp> view 1-3 4 5-6