From f71008b6a28151a7c9ce6979a357d72de4d6f9e6 Mon Sep 17 00:00:00 2001 From: Chris Penner Date: Wed, 26 Jun 2024 11:03:22 -0700 Subject: [PATCH] Port find-command to projects --- unison-src/transcripts/find-command.md | 10 +++--- unison-src/transcripts/find-command.output.md | 33 +++++++++++-------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/unison-src/transcripts/find-command.md b/unison-src/transcripts/find-command.md index d4da9f237..019903556 100644 --- a/unison-src/transcripts/find-command.md +++ b/unison-src/transcripts/find-command.md @@ -1,6 +1,5 @@ ```ucm:hide -scratch/main> builtins.merge -scratch/main> move builtin lib.builtin +scratch/main> builtins.merge lib.builtin ``` ```unison:hide @@ -31,13 +30,12 @@ scratch/main> find-in.all cat foo scratch/main> view 1 ``` -```ucm -scratch/main somewhere> find bar -scratch/main somewhere> find.global bar -``` +Finding within a namespace ```ucm scratch/main> find bar +-- Shows UUIDs +-- scratch/main> find.global bar scratch/main> find-in somewhere bar ``` diff --git a/unison-src/transcripts/find-command.output.md b/unison-src/transcripts/find-command.output.md index 2b7ffcf65..f75da189b 100644 --- a/unison-src/transcripts/find-command.output.md +++ b/unison-src/transcripts/find-command.output.md @@ -57,10 +57,24 @@ scratch/main> view 1 cat.lib.foo = 5 ``` -```ucm - ☝️ The namespace .somewhere is empty. +Finding within a namespace -.somewhere> find bar +```ucm +scratch/main> find bar + + 1. somewhere.bar : Nat + + +-- Shows UUIDs +-- scratch/main> find.global bar +scratch/main> find-in somewhere bar + + 1. bar : Nat + + +``` +```ucm +scratch/main> find baz ☝️ @@ -76,22 +90,13 @@ scratch/main> view 1 namespace. ``` - ```ucm -.somewhere> find bar.somewhere> find.global bar -``` - - -🛑 - -The transcript failed due to an error in the stanza above. The error is: - +scratch/main> find.global notHere 😶 No results. Check your spelling, or try using tab completion to supply command arguments. - `find.global` can be used to search outside the current - namespace. +```