go-rest-cctweaked/cli/RecieveArgument.go

16 lines
265 B
Go
Raw Permalink Normal View History

package cli
import (
"fmt"
"go-rest-cctweaked/networking"
)
func processRecieve(args []string) {
if len(args) < 2 {
gracefullExit("Recieve take additional url argument. Check --help")
}
body := networking.GetJsonBody(args[1])
fmt.Println(string(body))
}