go-rest-cctweaked/cli/RecieveArgument.go
2025-03-14 15:23:44 +03:00

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))
}