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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
_ "embed"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
@ -10,6 +11,9 @@ import (
|
||||||
"github.com/urfave/cli/v3"
|
"github.com/urfave/cli/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//go:embed layout/output.css
|
||||||
|
var outputcss string
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cmd := &cli.Command{
|
cmd := &cli.Command{
|
||||||
Name: "generate",
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue