diff piecrust/plugins/builtin.py @ 1134:986ecdaa2a36

url: New `url` command to get the URL of a page from its path.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 23 Apr 2018 21:37:27 -0700
parents 8af2ea1f5c34
children 74c0c7483986
line wrap: on
line diff
--- a/piecrust/plugins/builtin.py	Mon Apr 23 21:36:22 2018 -0700
+++ b/piecrust/plugins/builtin.py	Mon Apr 23 21:37:27 2018 -0700
@@ -12,7 +12,7 @@
         from piecrust.commands.builtin.info import (
             RootCommand, ShowConfigCommand,
             FindCommand, ShowSourcesCommand, ShowRoutesCommand,
-            ShowPathsCommand)
+            ShowPathsCommand, UrlCommand)
         from piecrust.commands.builtin.plugins import PluginsCommand
         from piecrust.commands.builtin.publishing import PublishCommand
         from piecrust.commands.builtin.scaffolding import PrepareCommand
@@ -34,6 +34,7 @@
             ShowSourcesCommand(),
             ShowRoutesCommand(),
             ShowPathsCommand(),
+            UrlCommand(),
             ThemesCommand(),
             PluginsCommand(),
             BakeCommand(),