From 2b09fe4dfcca0e2c1f8c7c7b57743ab901866b4a Mon Sep 17 00:00:00 2001 From: Muhammadali Nazarov Date: Wed, 22 Dec 2021 13:07:42 +0500 Subject: [PATCH] - Added the CLI_ARGS - Edited the READMI file --- go-gopher-cli/README.md | 15 +++++++++++++++ go-gopher-cli/Taskfile.yml | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/go-gopher-cli/README.md b/go-gopher-cli/README.md index 85d4f15..ad11ac1 100644 --- a/go-gopher-cli/README.md +++ b/go-gopher-cli/README.md @@ -55,3 +55,18 @@ Perfect! Just saved in friends.png! $ file friends.png friends.png: PNG image data, 1156 x 882, 8-bit/color RGBA, non-interlaced ``` + +or + +``` +$ task run -- [command] + +$ task run -- get friends +task: [run] GOFLAGS=-mod=mod go run main.go get friends +Try to get 'friends' Gopher... +Perfect! Just saved in friends.png! + + +$ file friends.png +friends.png: PNG image data, 1838 x 1408, 8-bit/color RGBA, non-interlaced +``` \ No newline at end of file diff --git a/go-gopher-cli/Taskfile.yml b/go-gopher-cli/Taskfile.yml index 39a3dbf..84f81e1 100644 --- a/go-gopher-cli/Taskfile.yml +++ b/go-gopher-cli/Taskfile.yml @@ -9,7 +9,7 @@ tasks: run: desc: Run the app cmds: - - GOFLAGS=-mod=mod go run main.go + - GOFLAGS=-mod=mod go run main.go {{.CLI_ARGS}} clean: desc: Remove all retrieved *.png files