Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ go.work.sum
#config files
*.yaml
*.yml
/build


# Editor/IDE
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: build test

build:
go build
go build -o "build/foreman-builder"

test:
go test ./...
3 changes: 3 additions & 0 deletions confs/orbstack-foreman.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ runcmd:
sed -i 's|/home/vagrant|/home/{{ .Username }}|g; s|user: vagrant|user: {{ .Username }}|g; s|group: vagrant|group: {{ .Username }}|g' /etc/foreman-installer/scenarios.d/katello-devel-answers.yaml
- foreman-installer --scenario katello-devel -v --no-colors

#source
- source ~/.bashrc

write_files:
- path: /home/{{ .Username }}/.bashrc.d/custom.sh
owner: {{ .Username }}:{{ .Username }}
Expand Down
19 changes: 9 additions & 10 deletions foreman-builder/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"strings"

foremanbuilder "github.com/aidenfine/foreman-builder/foreman-builder"
tea "github.com/charmbracelet/bubbletea"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -52,18 +51,18 @@ func runCreate() {
containerName = "foreman"
}

p := tea.NewProgram(initialOpts())
finalOpts, err := p.Run()
if err != nil {
fmt.Printf("Alas, there's been an error: %v", err)
os.Exit(1)
}
m := finalOpts.(opts)
// p := tea.NewProgram(initialOpts())
// finalOpts, err := p.Run()
// if err != nil {
// fmt.Printf("Alas, there's been an error: %v", err)
// os.Exit(1)
// }
// m := finalOpts.(opts)

// currently will not do anything
selectedShell := m.choices[m.cursor]
// selectedShell := m.choices[m.cursor]

fmt.Println("Selected Shell", selectedShell)
// fmt.Println("Selected Shell", selectedShell)

log.Printf("Starting enviornment creation ")

Expand Down