This commit is contained in:
parent
06206c7e95
commit
186ea1aa7f
2 changed files with 8 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
URL:
|
||||
https://wikipress.s3.fr-par.scw.cloud/wikipress/wikipress/wikipress
|
||||
6
main.go
6
main.go
|
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
_ "embed"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
|
|
@ -10,6 +11,9 @@ import (
|
|||
"github.com/urfave/cli/v3"
|
||||
)
|
||||
|
||||
//go:embed layout/output.css
|
||||
var outputcss string
|
||||
|
||||
func main() {
|
||||
cmd := &cli.Command{
|
||||
Name: "generate",
|
||||
|
|
@ -83,5 +87,7 @@ func action(ctx context.Context, cmd *cli.Command) error {
|
|||
}
|
||||
}
|
||||
|
||||
os.WriteFile(cmd.String("out"), []byte{outputcss}, 0644)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue