This commit is contained in:
maddalax 2024-09-20 11:57:45 -05:00
parent f036fae5e7
commit 91efc11984
15 changed files with 33 additions and 33 deletions

View file

@ -1,4 +1,4 @@
package htmgo package main
import ( import (
"sync" "sync"

View file

@ -1,4 +1,4 @@
package htmgo package main
import ( import (
"log/slog" "log/slog"

View file

@ -4,13 +4,13 @@ import (
"bufio" "bufio"
"flag" "flag"
"fmt" "fmt"
"github.com/maddalax/htmgo/cli/tasks/astgen" "github.com/maddalax/htmgo/cli/htmgo/tasks/astgen"
"github.com/maddalax/htmgo/cli/tasks/copyassets" "github.com/maddalax/htmgo/cli/htmgo/tasks/copyassets"
"github.com/maddalax/htmgo/cli/tasks/css" "github.com/maddalax/htmgo/cli/htmgo/tasks/css"
"github.com/maddalax/htmgo/cli/tasks/downloadtemplate" "github.com/maddalax/htmgo/cli/htmgo/tasks/downloadtemplate"
"github.com/maddalax/htmgo/cli/tasks/process" "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
"github.com/maddalax/htmgo/cli/tasks/reloader" "github.com/maddalax/htmgo/cli/htmgo/tasks/reloader"
"github.com/maddalax/htmgo/cli/tasks/run" "github.com/maddalax/htmgo/cli/htmgo/tasks/run"
"log/slog" "log/slog"
"os" "os"
"strings" "strings"

View file

@ -1,8 +1,8 @@
package htmgo package main
import ( import (
"fmt" "fmt"
"github.com/maddalax/htmgo/cli/tasks/process" "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
"os" "os"
"os/signal" "os/signal"
"syscall" "syscall"

View file

@ -2,7 +2,7 @@ package astgen
import ( import (
"fmt" "fmt"
"github.com/maddalax/htmgo/cli/tasks/process" "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
"go/ast" "go/ast"
"go/parser" "go/parser"
"go/token" "go/token"

View file

@ -1,7 +1,7 @@
package astgen package astgen
import ( import (
"github.com/maddalax/htmgo/cli/tasks/process" "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
"go/ast" "go/ast"
"go/format" "go/format"
"go/parser" "go/parser"

View file

@ -2,8 +2,8 @@ package copyassets
import ( import (
"fmt" "fmt"
"github.com/maddalax/htmgo/cli/tasks/module" "github.com/maddalax/htmgo/cli/htmgo/tasks/module"
"github.com/maddalax/htmgo/cli/tasks/process" "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
"golang.org/x/mod/modfile" "golang.org/x/mod/modfile"
"io" "io"
"log" "log"

View file

@ -1,6 +1,6 @@
package css package css
import "github.com/maddalax/htmgo/cli/tasks/process" import "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
func GenerateCss(flags ...process.RunFlag) error { func GenerateCss(flags ...process.RunFlag) error {
return process.RunMany([]string{ return process.RunMany([]string{

View file

@ -3,9 +3,9 @@ package downloadtemplate
import ( import (
"flag" "flag"
"fmt" "fmt"
"github.com/maddalax/htmgo/cli/tasks/process" "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
"github.com/maddalax/htmgo/cli/tasks/run" "github.com/maddalax/htmgo/cli/htmgo/tasks/run"
"github.com/maddalax/htmgo/cli/tasks/util" "github.com/maddalax/htmgo/cli/htmgo/tasks/util"
"os" "os"
"os/exec" "os/exec"
"path/filepath" "path/filepath"

View file

@ -3,10 +3,10 @@ package reloader
import ( import (
"fmt" "fmt"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
"github.com/maddalax/htmgo/cli/tasks/astgen" "github.com/maddalax/htmgo/cli/htmgo/tasks/astgen"
"github.com/maddalax/htmgo/cli/tasks/process" "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
"github.com/maddalax/htmgo/cli/tasks/run" "github.com/maddalax/htmgo/cli/htmgo/tasks/run"
"github.com/maddalax/htmgo/cli/tasks/util" "github.com/maddalax/htmgo/cli/htmgo/tasks/util"
"log/slog" "log/slog"
"strings" "strings"
"sync" "sync"

View file

@ -1,9 +1,9 @@
package run package run
import ( import (
"github.com/maddalax/htmgo/cli/tasks/astgen" "github.com/maddalax/htmgo/cli/htmgo/tasks/astgen"
"github.com/maddalax/htmgo/cli/tasks/css" "github.com/maddalax/htmgo/cli/htmgo/tasks/css"
"github.com/maddalax/htmgo/cli/tasks/process" "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
) )
func Build() { func Build() {

View file

@ -1,6 +1,6 @@
package run package run
import "github.com/maddalax/htmgo/cli/tasks/process" import "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
func EntNewSchema(name string) { func EntNewSchema(name string) {
process.RunOrExit("bash -c GOWORK=off go run -mod=mod entgo.io/ent/cmd/ent new " + name) process.RunOrExit("bash -c GOWORK=off go run -mod=mod entgo.io/ent/cmd/ent new " + name)

View file

@ -1,6 +1,6 @@
package run package run
import "github.com/maddalax/htmgo/cli/tasks/process" import "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
func Server(flags ...process.RunFlag) error { func Server(flags ...process.RunFlag) error {
return process.Run("go run .", flags...) return process.Run("go run .", flags...)

View file

@ -1,10 +1,10 @@
package run package run
import ( import (
"github.com/maddalax/htmgo/cli/tasks/astgen" "github.com/maddalax/htmgo/cli/htmgo/tasks/astgen"
"github.com/maddalax/htmgo/cli/tasks/copyassets" "github.com/maddalax/htmgo/cli/htmgo/tasks/copyassets"
"github.com/maddalax/htmgo/cli/tasks/css" "github.com/maddalax/htmgo/cli/htmgo/tasks/css"
"github.com/maddalax/htmgo/cli/tasks/process" "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
) )
func Setup() { func Setup() {

View file

@ -1,4 +1,4 @@
package htmgo package main
import ( import (
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"