Skip to content

Commit ee19d99

Browse files
committed
atuin: updates from v18.13.2
1 parent 018c0f6 commit ee19d99

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+677
-4
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var account_help_linkCmd = &cobra.Command{
9+
Use: "link",
10+
Short: "Link your CLI sync account to your Hub account",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(account_help_linkCmd).Standalone()
16+
17+
account_helpCmd.AddCommand(account_help_linkCmd)
18+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var account_linkCmd = &cobra.Command{
9+
Use: "link",
10+
Short: "Link your CLI sync account to your Hub account",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(account_linkCmd).Standalone()
16+
17+
account_linkCmd.Flags().BoolP("help", "h", false, "Print help")
18+
accountCmd.AddCommand(account_linkCmd)
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var aiCmd = &cobra.Command{
9+
Use: "ai",
10+
Short: "Run the AI assistant",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(aiCmd).Standalone()
16+
17+
aiCmd.Flags().BoolP("help", "h", false, "Print help")
18+
rootCmd.AddCommand(aiCmd)
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var ai_helpCmd = &cobra.Command{
9+
Use: "help",
10+
Short: "Print this message or the help of the given subcommand(s)",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(ai_helpCmd).Standalone()
16+
17+
aiCmd.AddCommand(ai_helpCmd)
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var ai_help_helpCmd = &cobra.Command{
9+
Use: "help",
10+
Short: "Print this message or the help of the given subcommand(s)",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(ai_help_helpCmd).Standalone()
16+
17+
ai_helpCmd.AddCommand(ai_help_helpCmd)
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var ai_help_initCmd = &cobra.Command{
9+
Use: "init",
10+
Short: "Initialize shell integration",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(ai_help_initCmd).Standalone()
16+
17+
ai_helpCmd.AddCommand(ai_help_initCmd)
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var ai_help_inlineCmd = &cobra.Command{
9+
Use: "inline",
10+
Short: "Inline completion mode with small TUI overlay",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(ai_help_inlineCmd).Standalone()
16+
17+
ai_helpCmd.AddCommand(ai_help_inlineCmd)
18+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var ai_initCmd = &cobra.Command{
9+
Use: "init",
10+
Short: "Initialize shell integration",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(ai_initCmd).Standalone()
16+
17+
ai_initCmd.Flags().BoolP("help", "h", false, "Print help")
18+
aiCmd.AddCommand(ai_initCmd)
19+
20+
carapace.Gen(ai_initCmd).PositionalCompletion(
21+
carapace.ActionValues("zsh", "bash", "fish", "auto"),
22+
)
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var ai_inlineCmd = &cobra.Command{
9+
Use: "inline",
10+
Short: "Inline completion mode with small TUI overlay",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(ai_inlineCmd).Standalone()
16+
17+
ai_inlineCmd.PersistentFlags().String("api-endpoint", "", "Custom API endpoint; defaults to reading from the `ai.endpoint` setting")
18+
ai_inlineCmd.PersistentFlags().String("api-token", "", "Custom API token; defaults to reading from the `ai.api_token` setting")
19+
ai_inlineCmd.Flags().BoolP("help", "h", false, "Print help")
20+
ai_inlineCmd.Flags().Bool("keep", false, "Keep TUI output visible after exit (default: erase)")
21+
ai_inlineCmd.PersistentFlags().BoolP("verbose", "v", false, "Enable verbose logging")
22+
aiCmd.AddCommand(ai_inlineCmd)
23+
}

completers/common/atuin_completer/cmd/daemon.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ import (
77

88
var daemonCmd = &cobra.Command{
99
Use: "daemon",
10-
Short: "*Experimental* Start the background daemon",
10+
Short: "*Experimental* Manage the background daemon",
1111
Run: func(cmd *cobra.Command, args []string) {},
1212
}
1313

1414
func init() {
1515
carapace.Gen(daemonCmd).Standalone()
1616

1717
daemonCmd.Flags().BoolP("help", "h", false, "Print help")
18+
daemonCmd.Flags().Bool("show-logs", false, "Also write daemon logs to the console (useful for debugging)")
1819
rootCmd.AddCommand(daemonCmd)
1920
}

0 commit comments

Comments
 (0)