mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-19 02:59:23 +08:00
feat: 添加 list-disk 命令以列出所有物理磁盘
This commit is contained in:
@@ -83,7 +83,7 @@ func init() {
|
||||
RootCmd.PersistentFlags().StringVarP(&flags.Token, "token", "t", "", "API token")
|
||||
//RootCmd.MarkPersistentFlagRequired("token")
|
||||
RootCmd.PersistentFlags().StringVarP(&flags.Endpoint, "endpoint", "e", "", "API endpoint")
|
||||
RootCmd.MarkPersistentFlagRequired("endpoint")
|
||||
//RootCmd.MarkPersistentFlagRequired("endpoint")
|
||||
RootCmd.PersistentFlags().StringVar(&flags.AutoDiscoveryKey, "auto-discovery", "", "Auto discovery key for the agent")
|
||||
RootCmd.PersistentFlags().BoolVar(&flags.DisableAutoUpdate, "disable-auto-update", false, "Disable automatic updates")
|
||||
RootCmd.PersistentFlags().BoolVar(&flags.DisableWebSsh, "disable-web-ssh", false, "Disable remote control(web ssh and rce)")
|
||||
|
Reference in New Issue
Block a user