github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/cmd/machine_plugins.go (about) 1 // Copyright (c) 2023, R.I. Pienaar and the Choria Project contributors 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 5 package cmd 6 7 import ( 8 "sync" 9 ) 10 11 type machinePluginsCommand struct { 12 command 13 } 14 15 func (p *machinePluginsCommand) Setup() (err error) { 16 if machine, ok := cmdWithFullCommand("machine"); ok { 17 p.cmd = machine.Cmd().Command("plugins", "Manage specifications for the plugins watcher") 18 } 19 return nil 20 } 21 22 func (p *machinePluginsCommand) Configure() error { 23 return nil 24 } 25 26 func (p *machinePluginsCommand) Run(wg *sync.WaitGroup) (err error) { 27 defer wg.Done() 28 29 return nil 30 } 31 32 func init() { 33 cli.commands = append(cli.commands, &machinePluginsCommand{}) 34 }