mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +02:00
Add config-get compact-mode command (as needed by #237)
This commit is contained in:
parent
03a68ad5a2
commit
6b5052489e
@ -146,6 +146,16 @@ var getColorScheme = &cobra.Command{
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var getCompactMode = &cobra.Command{
|
||||||
|
Use: "compact-mode",
|
||||||
|
Short: "Get whether the TUI is running in compact mode to minimize wasted terminal space",
|
||||||
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
ctx := hctx.MakeContext()
|
||||||
|
config := hctx.GetConf(ctx)
|
||||||
|
fmt.Println(config.ForceCompactMode)
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
var getAiCompletionEndpoint = &cobra.Command{
|
var getAiCompletionEndpoint = &cobra.Command{
|
||||||
Use: "ai-completion-endpoint",
|
Use: "ai-completion-endpoint",
|
||||||
Short: "The AI endpoint to use for AI completions",
|
Short: "The AI endpoint to use for AI completions",
|
||||||
@ -170,4 +180,5 @@ func init() {
|
|||||||
configGetCmd.AddCommand(getColorScheme)
|
configGetCmd.AddCommand(getColorScheme)
|
||||||
configGetCmd.AddCommand(getDefaultFilterCmd)
|
configGetCmd.AddCommand(getDefaultFilterCmd)
|
||||||
configGetCmd.AddCommand(getAiCompletionEndpoint)
|
configGetCmd.AddCommand(getAiCompletionEndpoint)
|
||||||
|
configGetCmd.AddCommand(getCompactMode)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user