Private
Public Access
1
0

style: format Go code with gofumpt
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

Apply consistent formatting to Go source files using gofumpt
as required by pre-commit guidelines.
This commit is contained in:
2025-08-03 16:06:59 -07:00
parent 3e6a0f9e63
commit 2dfc355f7c
9 changed files with 21 additions and 25 deletions

View File

@@ -30,7 +30,7 @@ func NewCLI() *CLI {
// RootCmd represents the base command when called without any subcommands
func (cli *CLI) rootCmd() *cobra.Command {
var cmd = &cobra.Command{
cmd := &cobra.Command{
Use: "data-api",
Short: "A brief description of your application",
// Uncomment the following line if your bare application
@@ -47,7 +47,6 @@ func (cli *CLI) rootCmd() *cobra.Command {
// Execute adds all child commands to the root command and sets flags appropriately.
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
cli := NewCLI()
if err := cli.root.Execute(); err != nil {
@@ -57,7 +56,6 @@ func Execute() {
}
func (cli *CLI) init(cmd *cobra.Command) {
logger.Setup()
cmd.PersistentFlags().StringVar(&cfgFile, "database-config", "database.yaml", "config file (default is $HOME/.data-api.yaml)")

View File

@@ -18,8 +18,7 @@ import (
)
func (cli *CLI) serverCmd() *cobra.Command {
var serverCmd = &cobra.Command{
serverCmd := &cobra.Command{
Use: "server",
Short: "server starts the API server",
Long: `starts the API server on (default) port 8000`,