make survery use new tui
This commit is contained in:
@@ -1,13 +1,14 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/LazyBachelor/LazyPM/pkg"
|
"github.com/LazyBachelor/LazyPM/pkg"
|
||||||
"github.com/LazyBachelor/LazyPM/pkg/cli"
|
"github.com/LazyBachelor/LazyPM/pkg/cli"
|
||||||
"github.com/LazyBachelor/LazyPM/pkg/tui"
|
"github.com/LazyBachelor/LazyPM/pkg/tui"
|
||||||
"github.com/LazyBachelor/LazyPM/pkg/web"
|
"github.com/LazyBachelor/LazyPM/pkg/web"
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"os"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -23,7 +24,7 @@ func main() {
|
|||||||
|
|
||||||
switch os.Args[1] {
|
switch os.Args[1] {
|
||||||
case "tui":
|
case "tui":
|
||||||
err = tui.Run(ctx, config)
|
_, err = tui.Run(ctx, config)
|
||||||
case "cli":
|
case "cli":
|
||||||
err = cli.Run(ctx, config)
|
err = cli.Run(ctx, config)
|
||||||
case "web":
|
case "web":
|
||||||
|
|||||||
Reference in New Issue
Block a user