Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework cobra CLI #41

Merged
merged 4 commits into from Aug 10, 2018
Merged

Rework cobra CLI #41

merged 4 commits into from Aug 10, 2018

Commits on Aug 9, 2018

  1. Rework cobra CLI

    * Moved the CLI into cmd package.
    * Broke out each subcommand into own file.
    * Created a version subcommand, which allows the binary to be built
      with version information when passed the following LDFLAGS.
    
        LDFLAGS := -s -w \
    	-X 'main.version=$(VERSION)'
    	-X 'main.buildHash=$(GITCOMMIT)'
    	-X 'main.buildDate=$(BUILDDATE)'
    retr0h committed Aug 9, 2018
    Configuration menu
    Copy the full SHA
    502a57a View commit details
    Browse the repository at this point in the history
  2. vendor/ needs to live in project root

    Since the CLI imports gcw the vendor/ directory should
    live at the base of the repo.  This also brings the project
    in line with most other go projects.  Updated Makefile and
    gitignore to preserve functionality.
    retr0h committed Aug 9, 2018
    Configuration menu
    Copy the full SHA
    5d68bd0 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2018

  1. Revert "vendor/ needs to live in project root"

    This reverts commit 5d68bd0.
    retr0h committed Aug 10, 2018
    Configuration menu
    Copy the full SHA
    295b908 View commit details
    Browse the repository at this point in the history
  2. Moved cmd under ghcw

    This should allow the CLI to remain using vendored packages, while
    keeping dependencies as minimal as possible with the importable
    package.
    retr0h committed Aug 10, 2018
    Configuration menu
    Copy the full SHA
    ffd12db View commit details
    Browse the repository at this point in the history