mirror of
https://github.com/danog/gojekyll.git
synced 2024-12-11 10:19:38 +01:00
20 lines
530 B
Go
20 lines
530 B
Go
|
package commands
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/osteele/gojekyll/plugins"
|
||
|
)
|
||
|
|
||
|
var pluginsApp = app.Command("plugins", "List emulated plugins")
|
||
|
|
||
|
func pluginsCommand() error {
|
||
|
logger.label("Plugins:", "")
|
||
|
for _, name := range plugins.Names() {
|
||
|
fmt.Printf(" %s\n", name)
|
||
|
}
|
||
|
fmt.Println("\nhttps://github.com/osteele/gojekyll/blob/master/docs/plugins.md describes plugin implementation status.")
|
||
|
fmt.Println("(This may not accurately describe your installation, if you are running an older version of gojekyll.)")
|
||
|
return nil
|
||
|
}
|