unison/unison-src/transcripts/upgrade-happy-path.output.md
Greg Pfeil 0031542faf
Add a space before code block info strings
This is for consistency with the `cmark` style. Now the blocks we still
pretty-print ourselves will match the bulk of them that `cmark`
produces.
2024-07-10 13:56:07 -06:00

1.1 KiB

lib.old.foo = 17
lib.new.foo = 18
thingy = lib.old.foo + 10

  Loading changes detected in scratch.u.

  I found and typechecked these definitions in scratch.u. If you
  do an `add` or `update`, here's how your codebase would
  change:
  
    ⍟ These new definitions are ok to `add`:
    
      lib.new.foo : Nat
      lib.old.foo : Nat
      thingy      : Nat

proj/main> add

  ⍟ I've added these definitions:
  
    lib.new.foo : Nat
    lib.old.foo : Nat
    thingy      : Nat

Test tab completion and fzf options of upgrade command.

proj/main> debug.tab-complete upgrade ol

   old

proj/main> debug.fuzzy-options upgrade _

  Select a dependency to upgrade:
    * builtin
    * new
    * old

proj/main> debug.fuzzy-options upgrade old _

  Select a dependency to upgrade to:
    * builtin
    * new
    * old

proj/main> upgrade old new

  I upgraded old to new, and removed old.

proj/main> ls lib

  1. builtin/ (469 terms, 74 types)
  2. new/     (1 term)

proj/main> view thingy

  thingy : Nat
  thingy =
    use Nat +
    foo + 10