Function ockam_command::replace_hyphen_with_stdin

source ·
pub fn replace_hyphen_with_stdin(s: String) -> String
Expand description

Replaces the ‘-’ placeholder character with a string value coming from stdin This is useful to be able to pipe the output of a command to another command.

For example:

ockam secure-channel create –from me –to /node/node-1/service/api | ockam message send hello –from me –to -/service/uppercase