Skip to content

Commit

Permalink
Rewrite CLIs: nknc and nknd
Browse files Browse the repository at this point in the history
Switch from urfave/cli to spf13/cobra. Same functionality, just

different cli library, resulting in less loc.

Signed-off-by: omani <3346207+omani@users.noreply.github.com>
  • Loading branch information
omani authored and yilunzhang committed Jun 21, 2022
1 parent 76c335b commit 7cf5df1
Show file tree
Hide file tree
Showing 27 changed files with 1,460 additions and 1,863 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ else
BIN_DIR=$(GOOS)-$(GOARCH)
endif
NKND_BUILD_PARAM=-ldflags "-s -w -X github.com/nknorg/nkn/v2/config.Version=$(VERSION)"
NKNC_BUILD_PARAM=-ldflags "-s -w -X github.com/nknorg/nkn/v2/cmd/nknc/common.Version=$(VERSION)"
#NKNC_BUILD_PARAM=-ldflags "-s -w -X github.com/nknorg/nkn/v2/cmd/nknc/common.Version=$(VERSION)"
NKNC_BUILD_PARAM=$(NKND_BUILD_PARAM)
NKND_OUTPUT=$(BUILD_DIR)/$(BIN_DIR)/nknd$(EXT)
NKNC_OUTPUT=$(BUILD_DIR)/$(BIN_DIR)/nknc$(EXT)
NKND_MAIN=./cmd/nknd/
Expand Down
242 changes: 0 additions & 242 deletions cmd/nknc/asset/asset.go

This file was deleted.

Loading

0 comments on commit 7cf5df1

Please sign in to comment.