Add cli delete importsource
This commit is contained in:
parent
d905318589
commit
bcd0882e9f
|
@ -67,6 +67,23 @@ class ImportsourceCommand extends Command
|
|||
$this->showImportStateDetails($source);
|
||||
}
|
||||
|
||||
/**
|
||||
* This command deletes the given Import Source.
|
||||
*
|
||||
* USAGE
|
||||
*
|
||||
* icingacli director importsource delete --id <id>
|
||||
*
|
||||
* OPTIONS
|
||||
*
|
||||
* --id <id> An Import Source ID. Use the list command to figure out
|
||||
*/
|
||||
public function deleteAction()
|
||||
{
|
||||
$source = $this->getImportSource();
|
||||
$source->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch current data from a given Import Source
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue