Add an example to signaldctl raw

fixes #4
This commit is contained in:
Finn 2021-11-07 10:18:27 -08:00
parent 924e9c3767
commit 149d44b705

View file

@ -12,9 +12,14 @@ import (
) )
var rawCmd = &cobra.Command{ var rawCmd = &cobra.Command{
Use: "raw <version> <type> [<json>]", Use: "raw version type [json]",
Short: "make a request to signald", Short: "make a request to signald",
Long: "make a raw request to signald, returning the result. If request data is not provided via command line argument labeled \"json\", it must be provided via stdin", Long: `make a raw request to signald, returning the result. If request data is not provided via command line argument labeled \"json\", it must be provided via stdin.
Example usage:
signaldctl raw v1 get_profile '{"account": "+12024561414", "address": {"number": "+12024561111"}}'
`,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
if len(args) < 3 { if len(args) < 3 {
return cmd.Help() return cmd.Help()