diff --git a/src/Command/IngestReferenceCommand.php b/src/Command/IngestReferenceCommand.php index f463774..483a9df 100644 --- a/src/Command/IngestReferenceCommand.php +++ b/src/Command/IngestReferenceCommand.php @@ -144,6 +144,10 @@ class IngestReferenceCommand extends Command $ref->setContent($md); $ref->setName($this->name); $ref->setType($this->type); + + if ($this->type == 'cd') { + $label = substr(basename($file), 0, -3); + } $ref->setLabel($label); $this->io->success("Ingested {$this->name} as {$this->type}:{$label}");