There was an error while loading. Please reload this page.
2 parents fe98543 + 06e4104 commit f7a7d1aCopy full SHA for f7a7d1a
3 files changed
commands/dotfiles_pull.go
@@ -58,13 +58,14 @@ func pullDotfiles(c *cli.Context) error {
58
59
// Initialize all available app handlers
60
allApps := map[string]model.DotfileApp{
61
- "nvim": model.NewNvimApp(),
62
- "fish": model.NewFishApp(),
63
- "git": model.NewGitApp(),
64
- "zsh": model.NewZshApp(),
65
- "bash": model.NewBashApp(),
66
- "ghostty": model.NewGhosttyApp(),
67
- "claude": model.NewClaudeApp(),
+ "nvim": model.NewNvimApp(),
+ "fish": model.NewFishApp(),
+ "git": model.NewGitApp(),
+ "zsh": model.NewZshApp(),
+ "bash": model.NewBashApp(),
+ "ghostty": model.NewGhosttyApp(),
+ "claude": model.NewClaudeApp(),
68
+ "starship": model.NewStarshipApp(),
69
}
70
71
// Process fetched dotfiles
commands/dotfiles_push.go
@@ -43,6 +43,7 @@ func pushDotfiles(c *cli.Context) error {
43
model.NewBashApp(),
44
model.NewGhosttyApp(),
45
model.NewClaudeApp(),
46
+ model.NewStarshipApp(),
47
48
49
// Filter apps based on user input
model/dotfile_starship.go
@@ -0,0 +1,26 @@
1
+package model
2
+
3
+import "context"
4
5
+// StarshipApp handles Starship configuration files
6
+type StarshipApp struct {
7
+ BaseApp
8
+}
9
10
+func NewStarshipApp() DotfileApp {
11
+ return &StarshipApp{}
12
13
14
+func (s *StarshipApp) Name() string {
15
+ return "starship"
16
17
18
+func (s *StarshipApp) GetConfigPaths() []string {
19
+ return []string{
20
+ "~/.config/starship.toml",
21
+ }
22
23
24
+func (s *StarshipApp) CollectDotfiles(ctx context.Context) ([]DotfileItem, error) {
25
+ return s.CollectFromPaths(ctx, s.Name(), s.GetConfigPaths())
26
0 commit comments