Skip to content

Commit f7dc3cf

Browse files
committed
updating to latest Minicli
1 parent 9a7168a commit f7dc3cf

File tree

4 files changed

+111
-163
lines changed

4 files changed

+111
-163
lines changed

Command/Build/DefaultController.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,34 @@ public function handle(): void
1717

1818
/** @var StaticBuilder $builder */
1919
$builder = $this->getApp()->builder;
20-
$this->getPrinter()->info("Starting Build", 1);
21-
$this->getPrinter()->info("Cleaning up output dir...");
20+
$this->info("Starting Build", true);
21+
$this->info("Cleaning up output dir...");
2222
$builder->cleanUp();
2323

2424
//Build content single pages
2525
$contentTypes = $content->getContentTypes();
2626
/** @var ContentType $contentType */
2727
foreach ($contentTypes as $contentType) {
28-
$this->getPrinter()->info("Building content type '$contentType->slug'");
28+
$this->info("Building content type '$contentType->slug'");
2929
$builder->buildContentType($contentType->slug);
3030
}
3131

32-
$this->getPrinter()->info("Building tag pages");
32+
$this->info("Building tag pages");
3333
$tags = $content->fetchTagList();
3434
foreach ($tags as $tag => $articles) {
35-
$this->getPrinter()->info("Building $tag pages...");
35+
$this->info("Building $tag pages...");
3636
$builder->buildPaginatedTagPage(trim($tag));
3737
}
3838

39-
$this->getPrinter()->info("Building index");
39+
$this->info("Building index");
4040
$builder->buildPaginatedIndex();
4141

42-
$this->getPrinter()->info("Copying Resources");
42+
$this->info("Copying Resources");
4343
$builder->copyPublicResources();
4444

45-
$this->getPrinter()->info("Building RSS feed");
45+
$this->info("Building RSS feed");
4646
$builder->buildRssFeed();
4747

48-
$this->getPrinter()->success("Finished building static website at $outputDir.");
48+
$this->success("Finished building static website at $outputDir.");
4949
}
5050
}

Command/Help/DefaultController.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)