From 087a978a8ca4f78bd07de77d046fc9f6ee406117 Mon Sep 17 00:00:00 2001 From: Roberto Hidalgo Date: Tue, 17 Jan 2023 20:48:38 -0600 Subject: [PATCH] format readme --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 37c5274..506120d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ package main import ( "os" - "fmt", + "fmt" "git.rob.mx/nidito/chinampa" "git.rob.mx/nidito/chinampa/pkg/command" @@ -18,22 +18,22 @@ import ( func main() { chinampa.Register(&command.Command{ - Path: []string{"something"}, - Summary: "does something", - Description: "a longer description of how it does stuff", - Arguments: command.Arguments{ - { - Name: "argument zero", - Description: "a help text for using argument zero", - Required: true, - }, - }, - Action: func(cmd *command.Command) error { - someArg := cmd.Arguments[0].ToValue().(string) + Path: []string{"something"}, + Summary: "does something", + Description: "a longer description of how it does stuff", + Arguments: command.Arguments{ + { + Name: "argument zero", + Description: "a help text for using argument zero", + Required: true, + }, + }, + Action: func(cmd *command.Command) error { + someArg := cmd.Arguments[0].ToValue().(string) - return fmt.Errorf("Don't know how to do stuff with %s", someArg) - }, - }) + return fmt.Errorf("Don't know how to do stuff with %s", someArg) + }, + }) logrus.SetFormatter(&logrus.TextFormatter{ DisableLevelTruncation: true,