-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
18 changed files
with
1,011 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package confirm | ||
|
||
import ( | ||
tea "github.com/charmbracelet/bubbletea" | ||
) | ||
|
||
type ConfirmModel struct { | ||
Message string | ||
} | ||
|
||
func NewConfirmModel(inMsg string) ConfirmModel { | ||
return ConfirmModel{ | ||
Message: inMsg, | ||
} | ||
} | ||
|
||
func (m ConfirmModel) Init() tea.Cmd { | ||
return nil | ||
} | ||
|
||
func (m ConfirmModel) Update(message tea.Msg) (tea.Model, tea.Cmd) { | ||
return nil, nil | ||
} | ||
|
||
func (m ConfirmModel) View() string { | ||
return "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package deploy | ||
|
||
import ( | ||
"github.com/charmbracelet/bubbles/help" | ||
tea "github.com/charmbracelet/bubbletea" | ||
) | ||
|
||
type DeployModel struct { | ||
help help.Model | ||
} | ||
|
||
func NewDeployModel() DeployModel { | ||
return DeployModel{ | ||
help: help.New(), | ||
} | ||
} | ||
|
||
func (m DeployModel) Init() tea.Cmd { | ||
return nil | ||
} | ||
func (m DeployModel) Update(message tea.Msg) (tea.Model, tea.Cmd) { | ||
return m, nil | ||
} | ||
func (m DeployModel) View() string { | ||
return "INSIDE DEPLOY MODEL" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package format | ||
|
||
import ( | ||
"github.com/charmbracelet/lipgloss" | ||
) | ||
|
||
var ( | ||
DocStyle = lipgloss.NewStyle().Margin(0, 2) | ||
HelpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("241")).Render | ||
ErrStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#bd534b")).Render | ||
AlertStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("62")).Render | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package home | ||
|
||
import tea "github.com/charmbracelet/bubbletea" | ||
|
||
func EnterNatsContext() tea.Cmd { | ||
return tea.SetWindowTitle("Inside NATS Context") | ||
} | ||
|
||
func EnterConfirm() tea.Cmd { | ||
return tea.SetWindowTitle("Inside Confirm") | ||
} | ||
|
||
func EnterDeploy() tea.Cmd { | ||
return tea.SetWindowTitle("Inside Deploy") | ||
} |
Oops, something went wrong.