helpcommand. What they have in common is that they are all used to control the output of the different
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
shawhen executing the
infocommand, which is used when taking the screenshots used by this documentation.
poly info fake-sha:c91fdad
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
poly info :no-exitwe have to press +C to exit, which is not so useful!
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".