mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-08 22:55:07 +02:00
Add support for full-screen rendering
This commit is contained in:
@ -184,6 +184,7 @@ func init() {
|
||||
configGetCmd.AddCommand(getAiCompletionEndpoint)
|
||||
configGetCmd.AddCommand(getCompactMode)
|
||||
configGetCmd.AddCommand(getLogLevelCmd)
|
||||
configGetCmd.AddCommand(getFullScreenCmd)
|
||||
}
|
||||
|
||||
var getLogLevelCmd = &cobra.Command{
|
||||
@ -195,3 +196,13 @@ var getLogLevelCmd = &cobra.Command{
|
||||
fmt.Println(config.LogLevel.String())
|
||||
},
|
||||
}
|
||||
|
||||
var getFullScreenCmd = &cobra.Command{
|
||||
Use: "full-screen",
|
||||
Short: "Get whether or not hishtory is configured to run in full-screen mode",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
ctx := hctx.MakeContext()
|
||||
config := hctx.GetConf(ctx)
|
||||
fmt.Println(config.FullScreenRendering)
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user