Skip to content

Commit 60c76a9

Browse files
Merge pull request #1 from appuio/rename-to-gandalf
Rename to "gandalf"
2 parents f66d855 + 856c6df commit 60c76a9

13 files changed

Lines changed: 32 additions & 92 deletions

File tree

.github/workflows/docs.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*.dylib
1010

1111
guided-setup
12+
gandalf
1213

1314
# Test binary, built with `go test -c`
1415
*.test
@@ -45,6 +46,7 @@ vendor/
4546

4647
# Other detritus from setup runs
4748
.guided-setup-state.json*
49+
.gandalf-state.json*
4850
*_hieradata/
4951
rhcos-*.qcow2
5052
ssh_*

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ MAKEFLAGS += --no-builtin-variables
1010

1111
export GOEXPERIMENT = jsonv2
1212

13-
BIN_FILENAME := guided-setup
13+
BIN_FILENAME := gandalf
1414

1515
.PHONY: help
1616
help: ## Show this help

cmd/render.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"slices"
99
"strings"
1010

11-
"github.com/appuio/guided-setup/pkg/executor"
12-
"github.com/appuio/guided-setup/pkg/renderer"
13-
"github.com/appuio/guided-setup/pkg/steps"
14-
"github.com/appuio/guided-setup/pkg/workflow"
11+
"github.com/appuio/gandalf/pkg/executor"
12+
"github.com/appuio/gandalf/pkg/renderer"
13+
"github.com/appuio/gandalf/pkg/steps"
14+
"github.com/appuio/gandalf/pkg/workflow"
1515
"github.com/spf13/cobra"
1616
"sigs.k8s.io/yaml"
1717
)
@@ -33,7 +33,7 @@ func NewRenderCommand() *cobra.Command {
3333
ro := &renderOptions{}
3434
c := &cobra.Command{
3535
Use: "render WORKFLOW steps...",
36-
Example: "guided-setup render workflow.workflow path/to/steps/*.yml",
36+
Example: "gandalf render workflow.workflow path/to/steps/*.yml",
3737
Short: "Renders the specified workflow.",
3838
Long: strings.Join([]string{
3939
"The render command renders the specified workflow in the specified format.",

cmd/root.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
)
1010

1111
var RootCmd = &cobra.Command{
12-
Use: "guided-setup",
13-
Short: "Guided Setup allows building interactive setup workflows.",
14-
Long: "Guided Setup allows building interactive setup workflows.",
12+
Use: "gandalf",
13+
Short: "Gandalf allows building interactive setup workflows.",
14+
Long: "Gandalf allows building interactive setup workflows.",
1515
PersistentPreRun: func(cmd *cobra.Command, args []string) {
1616
cmd.SilenceUsage = true
1717
},

cmd/run.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66
"os"
77
"strings"
88

9-
"github.com/appuio/guided-setup/pkg/executor"
10-
"github.com/appuio/guided-setup/pkg/state"
11-
"github.com/appuio/guided-setup/pkg/steps"
12-
"github.com/appuio/guided-setup/pkg/workflow"
13-
"github.com/appuio/guided-setup/ui"
9+
"github.com/appuio/gandalf/pkg/executor"
10+
"github.com/appuio/gandalf/pkg/state"
11+
"github.com/appuio/gandalf/pkg/steps"
12+
"github.com/appuio/gandalf/pkg/workflow"
13+
"github.com/appuio/gandalf/ui"
1414
"github.com/spf13/cobra"
1515
"sigs.k8s.io/yaml"
1616
)
@@ -28,21 +28,21 @@ func NewRunCommand() *cobra.Command {
2828
ro := &runOptions{}
2929
c := &cobra.Command{
3030
Use: "run WORKFLOW steps...",
31-
Example: "guided-setup run workflow.workflow path/to/steps/*.yml",
31+
Example: "gandalf run workflow.workflow path/to/steps/*.yml",
3232
Short: "Runs the specified workflow.",
3333
Long: strings.Join([]string{}, " "),
3434
ValidArgs: []string{"path", "paths..."},
3535
Args: cobra.MinimumNArgs(2),
3636
RunE: ro.Run,
3737
}
38-
c.Flags().StringVar(&ro.ShellRCFile, "rcfile", "~/.guided-setup/rc", "Path to a shell rc file to source before executing any step scripts.")
38+
c.Flags().StringVar(&ro.ShellRCFile, "rcfile", "~/.gandalf/rc", "Path to a shell rc file to source before executing any step scripts.")
3939
return c
4040
}
4141

4242
func (ro *runOptions) Run(cmd *cobra.Command, args []string) error {
4343
_ = cmd.Context()
4444

45-
stateManager, err := state.NewStateManager(".guided-setup-state.json")
45+
stateManager, err := state.NewStateManager(".gandalf-state.json")
4646
if err != nil {
4747
return fmt.Errorf("failed to create state manager: %w", err)
4848
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/appuio/guided-setup
1+
module github.com/appuio/gandalf
22

33
go 1.25.3
44

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/appuio/guided-setup/cmd"
4+
"github.com/appuio/gandalf/cmd"
55
)
66

77
func main() {

pkg/executor/executor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"path/filepath"
1111
"slices"
1212

13-
"github.com/appuio/guided-setup/pkg/state"
14-
"github.com/appuio/guided-setup/pkg/steps"
15-
"github.com/appuio/guided-setup/pkg/workflow"
13+
"github.com/appuio/gandalf/pkg/state"
14+
"github.com/appuio/gandalf/pkg/steps"
15+
"github.com/appuio/gandalf/pkg/workflow"
1616
"go.uber.org/multierr"
1717
)
1818

pkg/renderer/renderer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"io"
66
"strings"
77

8-
"github.com/appuio/guided-setup/pkg/executor"
8+
"github.com/appuio/gandalf/pkg/executor"
99
)
1010

1111
type Renderer struct {

0 commit comments

Comments
 (0)