From 149d44b70508f21cf1d3c418c9b8ecc4ec408846 Mon Sep 17 00:00:00 2001 From: Finn Date: Sun, 7 Nov 2021 10:18:27 -0800 Subject: [PATCH] Add an example to signaldctl raw fixes #4 --- cmd/signaldctl/cmd/raw.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/signaldctl/cmd/raw.go b/cmd/signaldctl/cmd/raw.go index 23cb9e0..db10514 100644 --- a/cmd/signaldctl/cmd/raw.go +++ b/cmd/signaldctl/cmd/raw.go @@ -12,9 +12,14 @@ import ( ) var rawCmd = &cobra.Command{ - Use: "raw []", + Use: "raw version type [json]", 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 { if len(args) < 3 { return cmd.Help()