File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 7
7
} -> [install!]
8
8
9
9
install ! = |cache_dir|
10
- roc_present_cmd ({})
10
+ roc_version_cmd ({})
11
11
|> cmd_output!
12
12
|> . status
13
13
|> Result . map_err (|_| Exit (1 , " Roc binary could not be found." ))
@@ -48,7 +48,7 @@ install! = |cache_dir|
48
48
delete_repo!(cache_dir)
49
49
|> Result . map_err (|e | Exit (1 , " Could not delete repository at ${cache_dir}/repo: ${Inspect.to_str(e)}" ))
50
50
51
- roc_present_cmd = |{}|
51
+ roc_version_cmd = |{}|
52
52
cmd_new(" /usr/bin/env" )
53
53
|> cmd_args([" roc" , " version" ])
54
54
@@ -67,7 +67,7 @@ install_cmd = |cache_dir|
67
67
delete_repo ! = |cache_dir|
68
68
delete_dirs!(" ${cache_dir}/repo" )
69
69
70
- ## Strip ANSI control sequences from a list of bytes. (Ensures proper JSON serialization)
70
+ ## Strip ANSI control sequences from a list of bytes.
71
71
strip_ansi_control : List U8 -> List U8
72
72
strip_ansi_control = |bytes|
73
73
when List . find_first_index (bytes , |b| b == 27 ) is
Original file line number Diff line number Diff line change @@ -770,4 +770,3 @@ get_terminal_size! = |{}|
770
770
|> Result . map_ok (ANSI . parse_cursor )
771
771
|> Result . map_ok (|{ row, col }| { width: col, height: row })
772
772
|> Result . map_err (|e | Exit (1 , " Error while getting terminal size: ${Inspect.to_str(e)}" ))
773
-
You can’t perform that action at this time.
0 commit comments