Skip to content

Commit

Permalink
chore: fix lint, and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter Thompson committed Sep 7, 2021
1 parent f3a29f2 commit 90b0e49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v -cover ./...
run: curl -fsSL https://get.pulumi.com | sh && ~/.pulumi/bin/pulumi plugin install resource kubernetes v2.4.2 && go test -v -cover ./...
release:
needs:
- test
Expand Down
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package main

import (
"fmt"
"log"
"os"

"github.com/smallcase/kube2cdk8s/cmd"
Expand All @@ -32,7 +33,10 @@ func configureCLI() *cobra.Command {
rootCmd.AddCommand(cmd.TSCommand())

rootCmd.PersistentFlags().StringVarP(&manifestFile, "file", "f", "", "YAML file to convert")
viper.BindPFlag("file", rootCmd.PersistentFlags().Lookup("file"))
err := viper.BindPFlag("file", rootCmd.PersistentFlags().Lookup("file"))
if err != nil {
log.Println(err)
}

return rootCmd
}
Expand Down

0 comments on commit 90b0e49

Please sign in to comment.