16 lines
265 B
Go
16 lines
265 B
Go
|
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))
|
||
|
}
|