There are a few parameters that are added to simplify the work with the Polylith codebase itself, which is the reason they are not included when executing the
helpcommand. What they have in common is that they are all used to control the output of the different
The output from the
depscommands can output a more compact format if we set
"deps"for the key
workspace.edn. Another way is to pass in
poly libs :compact
poly deps :compact
This parameter can be passed in to fake a
shawhen executing the
infocommand, which is used when taking the screenshots used by this documentation.
poly info fake-sha:c91fdad
This parameter can be used to fake that no changes have been made since the last stable point in time, and can be used when we want to take a screenshot of the
infocommand without getting the
poly diff :no-changesReturns no rows.
poly info :no-changesGets rid of the
polycommand is executed, it exits with
System/exitinternally, see the poly-cli base. If executing the poly tool from a REPL, this will also exit the REPL. To avoid that, we can pass in
If we execute
poly info :no-exitwe have to press +C to exit, which is not so useful!
This parameter is used to manipulate the output of the
wscommand. When we execute
poly ws get:settings:user-homeit will return something like
"/Users/joakimtengstrand". We can tell the
wscommand to search for strings (using regular expressions) and replace the occurrences with another string, e.g.:
poly ws get:settings:user-home replace:$HOME:MY-HOMEOutputs "MY-HOME".
poly ws get:settings:user-config-filename replace:$HOME:MY-HOMEOutputs "MY-HOME/.polylith/config.edn".
poly ws get:settings:user-config-filename replace:$HOME:MY-HOME:config.edn:USER-CONFIGOutputs "MY-HOME/.polylith/USER-CONFIG".
poly ws get:settings:vcs:stable-since:sha replace:"[0-9]+":"*"Outputs "dfcbeffdefdcfc*be".Here we need to surround the regular expressions with "" for the terminal to ignore the special characters.