Skip to content

Commit

Permalink
there seems to be an issue with new sections looking deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Apr 27, 2020
1 parent d905015 commit b657639
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/hof/cmd/auth/login.go
Expand Up @@ -5,8 +5,6 @@ import (
"os"

"github.com/spf13/cobra"

"github.com/hofstadter-io/hof/cmd/hof/pflags"
)

var loginLong = `login to an account`
Expand All @@ -29,8 +27,6 @@ var LoginCmd = &cobra.Command{

// Argument Parsing

fmt.Printf("login: %q\n", pflags.RootConfigPflag)

err = LoginRun(args)
if err != nil {
fmt.Println(err)
Expand Down
15 changes: 15 additions & 0 deletions cmd/hof/cmd/gen.go
Expand Up @@ -11,8 +11,23 @@ import (

var genLong = ` generate all the things, from code to data to config...`

var (
GenGeneratorFlag []string
)

func init() {

GenCmd.Flags().StringSliceVarP(&GenGeneratorFlag, "generator", "g", nil, "Generators to run")
}

func init() {

}

func GenRun(args []string) (err error) {

fmt.Println("GenFlags", GenGeneratorFlag)

return lib.Gen([]string{}, []string{}, "")

return err
Expand Down

0 comments on commit b657639

Please sign in to comment.