Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
FeatherSourceprocess constructs a new command
val find :
?include_starting_dir:Base.bool ->
?ignore_hidden:Base.bool ->
?kind:[ `Files | `Directories ] ->
?name:Base.string ->
?depth:Base.int ->
Base.string ->
cmdfind lists files and/or directories, optionally filtering by name.
?depth: The maximum search depth, defaults to infinity.
?include_starting_dir: whether to include the starting directory passed into find. Defaults to false, notably different than the unix find utility.
in_ is the directory that should be rg'd: rg <search> <in>. Without it, it'll filter stdin, just rg <search>
and_ is feather's version of a "&&" in bash. See Infix module for more.
or_ is feather's version of a "||" in bash. See Infix module for more.
sequence is feather's version of a ";" in bash. See Infix module for more.
val collect_stdout :
?cwd:Base.string ->
?env:(Base.string * Base.string) Base.list ->
cmd ->
Base.stringval collect_lines :
?cwd:Base.string ->
?env:(Base.string * Base.string) Base.list ->
cmd ->
Base.string Base.listmap within a series of pipes will be run in a thread.
val run_bg :
?cwd:Base.string ->
?env:(Base.string * Base.string) Base.list ->
cmd ->
Base.unitRun the process in a thread. Use wait to ensure that the parent won't exit, subsequently killing the background process.
stdout_to_stderr and stderr_to_stdout are NOT composable! Think of these functions as each creating a new command with the given redirection.
Applying both will result in no output to either stdout or stderr. flip_stdout_and_stderr should be easy to write if anyone should need it.
last_exit returns the exit status of the last child process to have exited
devnull is easier to type than "/dev/null"
val fzf :
?cwd:Base.string ->
?env:(Base.string * Base.string) Base.list ->
cmd ->
Base.string Base.optionfzf runs the command, and fuzzy finds the stdout. Returns None if no item was chosen, Some str otherwise
Note that fzf is a way to to run a cmd and does not in itself return a cmd.