Skip to content

Commit

Permalink
go fmt everything
Browse files Browse the repository at this point in the history
  • Loading branch information
amisevsk committed Feb 7, 2024
1 parent 4a94c66 commit df5a8a2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 19 deletions.
4 changes: 1 addition & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func init() {
rootCmd.AddCommand(pull.NewCmdPull())
rootCmd.AddCommand(push.NewCmdPush())
rootCmd.AddCommand(models.NewCmdModels())

// Here you will define your flags and configuration settings.
// Cobra supports persistent flags, which, if defined here,
// will be global for your application.
Expand All @@ -55,5 +55,3 @@ func init() {
// when this action is called directly.
rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}


2 changes: 1 addition & 1 deletion pkg/artifact/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ const (

// Media type for the model config (Jozufile)
ModelConfigMediaType = "application/vnd.jozu.model.config.v1+json"
)
)
4 changes: 1 addition & 3 deletions pkg/cmd/build/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import (
"testing"

"github.com/spf13/cobra"

"github.com/stretchr/testify/assert"
)


func TestNewCmdBuild(t *testing.T) {
cmd := NewCmdBuild()

Expand Down Expand Up @@ -49,7 +48,6 @@ func TestBuildOptions_RunBuild(t *testing.T) {
}

err := options.RunBuild()


assert.NoError(t, err)
}
Expand Down
2 changes: 0 additions & 2 deletions pkg/cmd/login/login.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
Copyright © 2024 Jozu.com
*/
package login

Expand All @@ -10,7 +9,6 @@ import (
"github.com/spf13/cobra"
)


func NewCmdLogin() *cobra.Command {
cmd := &cobra.Command{
Use: "login",
Expand Down
9 changes: 3 additions & 6 deletions pkg/cmd/models/models.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
Copyright © 2024 Jozu.com
*/
package models

Expand All @@ -11,7 +10,6 @@ import (
)

type ModelsFlags struct {

}
type ModelsOptions struct {
}
Expand Down Expand Up @@ -41,17 +39,16 @@ func NewCmdModels() *cobra.Command {
return
}
options.RunModels()
if err != nil{
if err != nil {
fmt.Println(err)
return
return
}
},
}
modelsFlags.AddFlags(cmd)
modelsFlags.AddFlags(cmd)
return cmd
}


func NewModelsFlags() *ModelsFlags {
return &ModelsFlags{}
}
Expand Down
1 change: 0 additions & 1 deletion pkg/cmd/pull/pull.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
Copyright © 2024 Jozu.com
*/
package pull

Expand Down
4 changes: 1 addition & 3 deletions pkg/cmd/push/push.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
Copyright © 2024 Jozu.com
*/
package push

Expand All @@ -13,7 +12,7 @@ import (
// pushCmd represents the push command

func NewCmdPush() *cobra.Command {

cmd := &cobra.Command{
Use: "push",
Short: "A brief description of your command",
Expand All @@ -30,7 +29,6 @@ func NewCmdPush() *cobra.Command {
return cmd
}


func init() {

// Here you will define your flags and configuration settings.
Expand Down

0 comments on commit df5a8a2

Please sign in to comment.