Janet 1.31.0-4e5889e Documentation
(Other Versions:
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
shutil/abspath function source
(abspath path) Create an absolute path. Does not resolve . and .. (useful for generating entries in install manifest file).Community Examples
shutil/basename function source
(basename path) Get the filename of a path without any leading directory components.Community Examples
shutil/clear-manifest function source
(clear-manifest) Clear the global installation manifest.Community Examples
shutil/color function source
(color input-color text) Color text with ascii escape sequences if (os/isatty)Community Examples
shutil/copy function source
(copy src dest) Copy a file or directory recursively from one location to another.Community Examples
shutil/copyfile function source
(copyfile src dest) Copy a file one location to another.Community Examples
shutil/create-dirs function source
(create-dirs dest) Create all directories needed for a file (mkdir -p).Community Examples
shutil/dirname function source
(dirname path) Get the directory of a file without the filename.Community Examples
shutil/do-monkeypatch function source
(do-monkeypatch build-dir) Modify the existing environment to have the same paths as the test environment.Community Examples
shutil/drop1-shell function source
(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.Community Examples
shutil/exec-slurp function source
(exec-slurp & args) Read stdout of subprocess and return it trimmed in a string.Community Examples
shutil/filepath-replace function source
(filepath-replace repo) Remove special characters from a string or path to make it into a path segment.Community Examples
shutil/find-build-dir function source
(find-build-dir) Gets the build directory to output files to.Community Examples
shutil/find-cache function source
(find-cache) Return the path to the global cache.Community Examples
shutil/find-manifest function source
(find-manifest name) Get the full path of a manifest file given a package name.Community Examples
shutil/find-manifest-dir function source
(find-manifest-dir) Get the path to the directory containing manifests for installed packages.Community Examples
shutil/is-win function source
(is-win) Check if we should assume a DOS-like shell or default to posix shell.Community Examples
shutil/is-win-or-mingw function source
(is-win-or-mingw) Check if built with mingwCommunity Examples
shutil/run-patched function source
(run-patched & extra-args) Run a subprocess Janet repl that has the same environment as the test environment.Community Examples
shutil/run-repl function source
(run-repl) Run a repl in the monkey patched test environmentCommunity Examples
shutil/run-script function source
(run-script path) Run a local script in the monkey patched environment.Community Examples