parent
924e9c3767
commit
149d44b705
1 changed files with 7 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue