Skip to main content

root

root

print the repository's root (top) of the current working directory

Print the root directory of the current repository.

Frequently useful in shells scripts and automation to run commands like:

$  ./$(sl root)/bin/script.py

Returns 0 on success.

arguments

shortnamefullnamedefaultdescription
--sharedfalseshow root of the shared repo