Skip to content

Commit

Permalink
rename redis workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xh3b4sd committed Dec 7, 2023
1 parent 3ee57af commit 324ae06
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ Available Commands:
pbflint Create a protocol buffer workflow for schema validation.
pbfts Create a protocol buffer workflow for typescript code generation.
redigo Create a redis workflow for e.g. running conformance tests.
redis Create a redis workflow for e.g. running conformance tests.
releasego Create a golang workflow for e.g. uploading cross compiled release assets.
releases3 Create a golang workflow for e.g. uploading cross compiled release assets.
rescue Create a redis workflow for e.g. running conformance tests.
typescript Create a typescript workflow for e.g. building and formatting typescript code.
Flags:
Expand Down
22 changes: 11 additions & 11 deletions cmd/create/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"github.com/xh3b4sd/workflow/cmd/create/pbflint"
"github.com/xh3b4sd/workflow/cmd/create/pbfts"
"github.com/xh3b4sd/workflow/cmd/create/redigo"
"github.com/xh3b4sd/workflow/cmd/create/redis"
"github.com/xh3b4sd/workflow/cmd/create/releasego"
"github.com/xh3b4sd/workflow/cmd/create/releases3"
"github.com/xh3b4sd/workflow/cmd/create/rescue"
"github.com/xh3b4sd/workflow/cmd/create/typescript"
)

Expand Down Expand Up @@ -184,37 +184,37 @@ func New(config Config) (*cobra.Command, error) {
}
}

var releasegoCmd *cobra.Command
var redisCmd *cobra.Command
{
c := releasego.Config{
c := redis.Config{
Logger: config.Logger,
}

releasegoCmd, err = releasego.New(c)
redisCmd, err = redis.New(c)
if err != nil {
return nil, tracer.Mask(err)
}
}

var releases3Cmd *cobra.Command
var releasegoCmd *cobra.Command
{
c := releases3.Config{
c := releasego.Config{
Logger: config.Logger,
}

releases3Cmd, err = releases3.New(c)
releasegoCmd, err = releasego.New(c)
if err != nil {
return nil, tracer.Mask(err)
}
}

var rescueCmd *cobra.Command
var releases3Cmd *cobra.Command
{
c := rescue.Config{
c := releases3.Config{
Logger: config.Logger,
}

rescueCmd, err = rescue.New(c)
releases3Cmd, err = releases3.New(c)
if err != nil {
return nil, tracer.Mask(err)
}
Expand Down Expand Up @@ -257,9 +257,9 @@ func New(config Config) (*cobra.Command, error) {
c.AddCommand(pbflintCmd)
c.AddCommand(pbftsCmd)
c.AddCommand(redigoCmd)
c.AddCommand(redisCmd)
c.AddCommand(releasegoCmd)
c.AddCommand(releases3Cmd)
c.AddCommand(rescueCmd)
c.AddCommand(typescriptCmd)
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/create/rescue/command.go → cmd/create/redis/command.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rescue
package redis

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

const (
name = "rescue"
name = "redis"
short = "Create a redis workflow for e.g. running conformance tests."
long = "Create a redis workflow for e.g. running conformance tests."
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/create/rescue/error.go → cmd/create/redis/error.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rescue
package redis

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion cmd/create/rescue/flag.go → cmd/create/redis/flag.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rescue
package redis

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion cmd/create/rescue/run.go → cmd/create/redis/run.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rescue
package redis

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rescue
package redis

const templateWorkflow = `#
# Do not edit. This file was generated via the "workflow" command line tool.
Expand Down

0 comments on commit 324ae06

Please sign in to comment.