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 (
"sync"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
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 {
return process.RunMany([]string{

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
package run
import "github.com/maddalax/htmgo/cli/tasks/process"
import "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
func EntNewSchema(name string) {
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
import "github.com/maddalax/htmgo/cli/tasks/process"
import "github.com/maddalax/htmgo/cli/htmgo/tasks/process"
func Server(flags ...process.RunFlag) error {
return process.Run("go run .", flags...)

View file

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

View file

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