Janet 1.38.0-73334f3 Documentation
(Other Versions:
1.37.1
1.36.0
1.35.0
1.34.0
1.31.0
1.29.1
1.28.0
1.27.0
1.26.0
1.25.1
1.24.0
1.23.0
1.22.0
1.21.0
1.20.0
1.19.0
1.18.1
1.17.1
1.16.1
1.15.0
1.13.1
1.12.2
1.11.1
1.10.1
1.9.1
1.8.1
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.3.1
)
Shell Utilities
Index
shutil/abspath shutil/basename shutil/clear-cache shutil/clear-manifest shutil/clexe-shell shutil/color shutil/copy shutil/copyfile shutil/create-dirs shutil/devnull shutil/dirname shutil/do-monkeypatch shutil/drop1-shell shutil/exec-slurp shutil/filepath-replace shutil/find-build-dir shutil/find-cache shutil/find-manifest shutil/find-manifest-dir shutil/is-mingw shutil/is-win shutil/is-win-or-mingw shutil/path-splitter shutil/rimraf shutil/rm shutil/run-patched shutil/run-repl shutil/run-script shutil/shell shutil/undo-monkeypatch
(abspath path)
Create an absolute path. Does not resolve . and .. (useful for generating entries in install manifest file).
(basename path)
Get the filename of a path without any leading directory components.
(color input-color text)
Color text with ascii escape sequences if (os/isatty)
(copy src dest)
Copy a file or directory recursively from one location to another.
(create-dirs dest)
Create all directories needed for a file (mkdir -p).
(do-monkeypatch build-dir)
Modify the existing environment to have the same paths as the test environment.
(drop1-shell std args)
Variant of shell
to play nice with cl.exe, which outputs some junk to terminal that can't be turned off.
(exec-slurp & args)
Read stdout of subprocess and return it trimmed in a string.
(filepath-replace repo)
Remove special characters from a string or path to make it into a path segment.
(find-manifest name)
Get the full path of a manifest file given a package name.
(find-manifest-dir)
Get the path to the directory containing manifests for installed packages.
(is-win)
Check if we should assume a DOS-like shell or default to posix shell.
(run-patched & extra-args)
Run a subprocess Janet repl that has the same environment as the test environment.
(run-script path)
Run a local script in the monkey patched environment.