Skip to content

Commit

Permalink
GUIDE.md: Add command and file format in example (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev authored Jan 27, 2022
1 parent 37ccb3e commit e51f45c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ Example with command like that `./dummy server ./openapi.yml -port=8080` from [d
func run() error {
cmds := []acmd.Command{
{
// Command
// Command "server"
Name: "server",
Description: "run mock server",
Do: func(ctx context.Context, args []string) error {
cfg := config.NewConfig()

// Argument ./openapi
// Argument ./openapi.yml
cfg.Server.Path = args[0]

// Flags after argument
Expand Down

0 comments on commit e51f45c

Please sign in to comment.