Add cli delete importsource

This commit is contained in:
Gianluca Piccolo 2023-02-13 16:48:45 +01:00
parent d905318589
commit bcd0882e9f
1 changed files with 17 additions and 0 deletions

View File

@ -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
*