mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-17 13:27:30 +03:00
Rerun transcripts
This commit is contained in:
parent
d4a04b7349
commit
e545e0b1a7
@ -46,6 +46,4 @@ scratch/main> names term1
|
||||
Hash: #8hum58rlih
|
||||
Names: term1 term2
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
|
@ -49,16 +49,12 @@ scratch/app1> names a
|
||||
Hash: #gjmq673r1v
|
||||
Names: lib.text_v1.a lib.text_v2.a
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
scratch/app1> names x
|
||||
|
||||
Term
|
||||
Hash: #nsmc4p1ra4
|
||||
Names: lib.http_v3.x lib.http_v4.x
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
Our `app2` project includes the `http` library twice as direct dependencies, and once as an indirect dependency via `webutil`.
|
||||
It also includes the `text` library twice as indirect dependencies via `webutil`
|
||||
@ -103,14 +99,10 @@ scratch/app2> names a
|
||||
Hash: #gjmq673r1v
|
||||
Names: lib.webutil.lib.text_v1.a
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
scratch/app2> names x
|
||||
|
||||
Term
|
||||
Hash: #nsmc4p1ra4
|
||||
Names: lib.http_v1.x lib.http_v2.x
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
|
@ -25,7 +25,7 @@ scratch/main> find.verbose
|
||||
No results. Check your spelling, or try using tab completion
|
||||
to supply command arguments.
|
||||
|
||||
`find.global` can be used to search outside the current
|
||||
`debug.find.global` can be used to search outside the current
|
||||
namespace.
|
||||
|
||||
```
|
||||
@ -42,7 +42,7 @@ scratch/main> find mynamespace
|
||||
No results. Check your spelling, or try using tab completion
|
||||
to supply command arguments.
|
||||
|
||||
`find.global` can be used to search outside the current
|
||||
`debug.find.global` can be used to search outside the current
|
||||
namespace.
|
||||
|
||||
```
|
||||
|
@ -86,17 +86,14 @@ scratch/main> find baz
|
||||
No results. Check your spelling, or try using tab completion
|
||||
to supply command arguments.
|
||||
|
||||
`find.global` can be used to search outside the current
|
||||
`debug.find.global` can be used to search outside the current
|
||||
namespace.
|
||||
|
||||
```
|
||||
``` ucm
|
||||
scratch/main> find.global notHere
|
||||
|
||||
😶
|
||||
|
||||
No results. Check your spelling, or try using tab completion
|
||||
to supply command arguments.
|
||||
|
||||
⚠️
|
||||
I don't know how to find.global. Type `help` or `?` to get help.
|
||||
|
||||
```
|
||||
|
@ -113,6 +113,50 @@ scratch/main> help
|
||||
debug.file
|
||||
View details about the most recent successfully typechecked file.
|
||||
|
||||
debug.find.global
|
||||
`find` lists all definitions in the
|
||||
current namespace.
|
||||
`find foo` lists all definitions with a
|
||||
name similar to 'foo' in the
|
||||
current namespace (excluding
|
||||
those under 'lib').
|
||||
`find foo bar` lists all definitions with a
|
||||
name similar to 'foo' or
|
||||
'bar' in the current
|
||||
namespace (excluding those
|
||||
under 'lib').
|
||||
`find-in namespace` lists all definitions in the
|
||||
specified subnamespace.
|
||||
`find-in namespace foo bar` lists all definitions with a
|
||||
name similar to 'foo' or
|
||||
'bar' in the specified
|
||||
subnamespace.
|
||||
find.all foo lists all definitions with a
|
||||
name similar to 'foo' in the
|
||||
current namespace (including
|
||||
one level of 'lib').
|
||||
`find-in.all namespace` lists all definitions in the
|
||||
specified subnamespace
|
||||
(including one level of its
|
||||
'lib').
|
||||
`find-in.all namespace foo bar` lists all definitions with a
|
||||
name similar to 'foo' or
|
||||
'bar' in the specified
|
||||
subnamespace (including one
|
||||
level of its 'lib').
|
||||
debug.find.global foo Iteratively searches all
|
||||
projects and branches and
|
||||
lists all definitions with a
|
||||
name similar to 'foo'. Note
|
||||
that this is a very slow
|
||||
operation.
|
||||
|
||||
debug.names.global
|
||||
`debug.names.global foo` Iteratively search across all
|
||||
projects and branches for names matching `foo`. Note that this
|
||||
is expected to be quite slow and is primarily for debugging
|
||||
issues with your codebase.
|
||||
|
||||
debug.numberedArgs
|
||||
Dump the contents of the numbered args state.
|
||||
|
||||
@ -269,9 +313,12 @@ scratch/main> help
|
||||
'bar' in the specified
|
||||
subnamespace (including one
|
||||
level of its 'lib').
|
||||
find.global foo lists all definitions with a
|
||||
name similar to 'foo' in any
|
||||
namespace
|
||||
debug.find.global foo Iteratively searches all
|
||||
projects and branches and
|
||||
lists all definitions with a
|
||||
name similar to 'foo'. Note
|
||||
that this is a very slow
|
||||
operation.
|
||||
|
||||
find-in
|
||||
`find` lists all definitions in the
|
||||
@ -304,9 +351,12 @@ scratch/main> help
|
||||
'bar' in the specified
|
||||
subnamespace (including one
|
||||
level of its 'lib').
|
||||
find.global foo lists all definitions with a
|
||||
name similar to 'foo' in any
|
||||
namespace
|
||||
debug.find.global foo Iteratively searches all
|
||||
projects and branches and
|
||||
lists all definitions with a
|
||||
name similar to 'foo'. Note
|
||||
that this is a very slow
|
||||
operation.
|
||||
|
||||
find-in.all
|
||||
`find` lists all definitions in the
|
||||
@ -339,9 +389,12 @@ scratch/main> help
|
||||
'bar' in the specified
|
||||
subnamespace (including one
|
||||
level of its 'lib').
|
||||
find.global foo lists all definitions with a
|
||||
name similar to 'foo' in any
|
||||
namespace
|
||||
debug.find.global foo Iteratively searches all
|
||||
projects and branches and
|
||||
lists all definitions with a
|
||||
name similar to 'foo'. Note
|
||||
that this is a very slow
|
||||
operation.
|
||||
|
||||
find.all
|
||||
`find` lists all definitions in the
|
||||
@ -374,48 +427,16 @@ scratch/main> help
|
||||
'bar' in the specified
|
||||
subnamespace (including one
|
||||
level of its 'lib').
|
||||
find.global foo lists all definitions with a
|
||||
name similar to 'foo' in any
|
||||
namespace
|
||||
debug.find.global foo Iteratively searches all
|
||||
projects and branches and
|
||||
lists all definitions with a
|
||||
name similar to 'foo'. Note
|
||||
that this is a very slow
|
||||
operation.
|
||||
|
||||
find.all.verbose
|
||||
`find.all.verbose` searches for definitions like `find.all`, but includes hashes and aliases in the results.
|
||||
|
||||
find.global
|
||||
`find` lists all definitions in the
|
||||
current namespace.
|
||||
`find foo` lists all definitions with a
|
||||
name similar to 'foo' in the
|
||||
current namespace (excluding
|
||||
those under 'lib').
|
||||
`find foo bar` lists all definitions with a
|
||||
name similar to 'foo' or
|
||||
'bar' in the current
|
||||
namespace (excluding those
|
||||
under 'lib').
|
||||
`find-in namespace` lists all definitions in the
|
||||
specified subnamespace.
|
||||
`find-in namespace foo bar` lists all definitions with a
|
||||
name similar to 'foo' or
|
||||
'bar' in the specified
|
||||
subnamespace.
|
||||
find.all foo lists all definitions with a
|
||||
name similar to 'foo' in the
|
||||
current namespace (including
|
||||
one level of 'lib').
|
||||
`find-in.all namespace` lists all definitions in the
|
||||
specified subnamespace
|
||||
(including one level of its
|
||||
'lib').
|
||||
`find-in.all namespace foo bar` lists all definitions with a
|
||||
name similar to 'foo' or
|
||||
'bar' in the specified
|
||||
subnamespace (including one
|
||||
level of its 'lib').
|
||||
find.global foo lists all definitions with a
|
||||
name similar to 'foo' in any
|
||||
namespace
|
||||
|
||||
find.verbose
|
||||
`find.verbose` searches for definitions like `find`, but includes hashes and aliases in the results.
|
||||
|
||||
@ -526,11 +547,8 @@ scratch/main> help
|
||||
`move.type foo bar` renames `foo` to `bar`.
|
||||
|
||||
names
|
||||
`names foo` shows the hash and all known names for `foo`.
|
||||
|
||||
names.global
|
||||
`names.global foo` shows the hash and all known names for
|
||||
`foo`.
|
||||
`names foo` List all known names for `foo` in the current
|
||||
branch.
|
||||
|
||||
namespace.dependencies
|
||||
List the external dependencies of the specified namespace.
|
||||
|
@ -1436,8 +1436,6 @@ project/alice> names A
|
||||
Hash: #65mdg7015r
|
||||
Names: A A.inner.X
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
Bob's branch:
|
||||
|
||||
|
@ -60,8 +60,6 @@ scratch/main> names x
|
||||
Hash: #pi25gcdv0o
|
||||
Names: some.otherplace.x
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
-- We can search by hash, and see all aliases of that hash
|
||||
scratch/main> names #gjmq673r1v
|
||||
|
||||
@ -69,8 +67,6 @@ scratch/main> names #gjmq673r1v
|
||||
Hash: #gjmq673r1v
|
||||
Names: some.otherplace.y some.place.x somewhere.z
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
-- Works with absolute names too
|
||||
scratch/main> names .some.place.x
|
||||
|
||||
@ -78,8 +74,6 @@ scratch/main> names .some.place.x
|
||||
Hash: #gjmq673r1v
|
||||
Names: some.otherplace.y some.place.x somewhere.z
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
`names.global` searches from the root, and absolutely qualifies results
|
||||
|
||||
|
@ -166,8 +166,6 @@ scratch/main> names distributed.lib.baz.qux
|
||||
Hash: #nhup096n2s
|
||||
Names: lib.distributed.lib.baz.qux
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
## Corner cases
|
||||
|
||||
|
@ -61,8 +61,6 @@ scratch/main> names A
|
||||
Hash: #uj8oalgadr#0
|
||||
Names: A.A
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
``` unison
|
||||
unique type A = A ()
|
||||
@ -100,8 +98,6 @@ scratch/main> names A
|
||||
Hash: #ufo5tuc7ho#0
|
||||
Names: A.A
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
``` unison
|
||||
unique type A = A
|
||||
@ -141,6 +137,4 @@ scratch/main> names A
|
||||
Hash: #uj8oalgadr#0
|
||||
Names: A.A
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
|
@ -63,6 +63,4 @@ scratch/main> names foo
|
||||
Hash: #9ntnotdp87
|
||||
Names: foo
|
||||
|
||||
Tip: Use `names.global` to see more results.
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user