Skip to content

Commit

Permalink
style: cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
2637309949 committed Aug 6, 2021
1 parent 13ac841 commit 6db9f66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/dolphin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ import (
"golang.org/x/term"
)

// AssetsFileSystem defined TODO
type AssetsFileSystem struct {
RelativePath string
http.FileSystem
}

// Open defined TODO
func (assert *AssetsFileSystem) Open(name string) (http.File, error) {
if strings.Contains(name, "swagger.yaml") {
return os.Open(path.Join(viper.GetString("dir.doc"), "swagger.yaml"))
Expand All @@ -56,7 +58,7 @@ func Open(uri string) error {
return cmd.Start()
}

// InitViper defined
// InitViper defined TODO
func InitViper(cmd *cobra.Command, args []string) {
utils.SetFormatter(term.IsTerminal(unix.Stdout))
utils.SetLevel(cmd)
Expand Down Expand Up @@ -243,7 +245,7 @@ var (
}
assert = &cobra.Command{
Use: "assert",
Short: "",
Short: "Generate Go code that statically implements input filesystem",
RunE: func(_ *cobra.Command, _ []string) error {
if err := os.MkdirAll("../dist", os.ModePerm); err != nil {
if err != nil {
Expand Down

0 comments on commit 6db9f66

Please sign in to comment.