Skip to content

Commit c6c356f

Browse files
committed
fix errors
1 parent 8c0bcb7 commit c6c356f

File tree

212 files changed

+9875
-8038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+9875
-8038
lines changed

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PATH:=$(LOCAL_BIN):$(PATH)
77
.PHONY: build-fluent
88
build-fluent:
99
# @go build -ldflags "-X main.version=$(shell git describe --abbrev=0 --tags)" -o fluent
10-
go build cmd/fluent.go
10+
go build app/fluentcli/fluent.go
1111

1212

1313
PHONY: test
@@ -16,7 +16,11 @@ test: ## run go tests
1616

1717
PHONY: PB
1818
PB: ## build pocket-base
19+
<<<<<<< HEAD
1920
go build app/pb/pbserver.go
21+
=======
22+
go build app/pb/pbapp.go
23+
>>>>>>> 5abef92 (refine codes)
2024

2125
integration-test: ### run integration-test
2226
go clean -testcache && go test -v ./integration-test/...
@@ -25,7 +29,11 @@ integration-test: ### run integration-test
2529

2630
.PHONY: build-cli
2731
build-cli:
28-
go build cmd/fluent.go
32+
go build app/fluentcli/fluent.go
33+
34+
.PHONY: build-pb
35+
build-pb:
36+
go build app/pb/pbapp.go
2937

3038
.PHONY: build-pb
3139
build-pb:

app/desktop/app.go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package main
2+
3+
import (
4+
"context"
5+
"fmt"
6+
)
7+
8+
// App struct
9+
type App struct {
10+
ctx context.Context
11+
}
12+
13+
// NewApp creates a new App application struct
14+
func NewApp() *App {
15+
return &App{}
16+
}
17+
18+
// startup is called when the app starts. The context is saved
19+
// so we can call the runtime methods
20+
func (a *App) startup(ctx context.Context) {
21+
a.ctx = ctx
22+
}
23+
24+
// Greet returns a greeting for the given name
25+
func (a *App) Greet(name string) string {
26+
return fmt.Sprintf("Hello %s, It's show time!", name)
27+
}

cmd/actions/awesome.go renamed to app/fluentcli/actions/awesome.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"path/filepath"
88
"strings"
99

10-
"github.com/fluent-qa/qgops/internal/utils/jsonutil"
11-
_ "github.com/fluent-qa/qgops/internal/utils/qhttp"
10+
"github.com/fluent-qa/qgops/pkg/utils/jsonutil"
11+
_ "github.com/fluent-qa/qgops/pkg/utils/qhttp"
1212
"github.com/imroc/req/v3"
1313
"github.com/samber/lo"
1414
"github.com/spf13/cobra"
File renamed without changes.
File renamed without changes.

cmd/actions/base.go renamed to app/fluentcli/actions/base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package actions
22

33
import (
4-
"github.com/fluent-qa/qgops/internal/utils/shell"
4+
"github.com/fluent-qa/qgops/pkg/utils/shell"
55
"github.com/spf13/cobra"
66
"path"
77
"strings"
File renamed without changes.

cmd/actions/issue.go renamed to app/fluentcli/actions/issue.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package actions
22

33
import (
4-
"github.com/fluent-qa/qgops/internal/utils"
5-
"github.com/fluent-qa/qgops/internal/utils/shell"
4+
"github.com/fluent-qa/qgops/pkg/utils"
5+
"github.com/fluent-qa/qgops/pkg/utils/shell"
66
_ "log/slog"
77

88
"github.com/spf13/cobra"
@@ -29,7 +29,7 @@ func init() {
2929
IssueCmd.Flags().StringVarP(&issueTitle, "title", "t", "", "Title of the issue")
3030
IssueCmd.Flags().StringVarP(&issueBody, "body", "b", "", "Body of the issue")
3131
IssueCmd.Flags().StringVarP(&issueDoc, "doc", "d", "", "Body do of the issue")
32-
IssueCmd.MarkFlagRequired("title")
32+
_ = IssueCmd.MarkFlagRequired("title")
3333
//IssueCmd.MarkFlagRequired("body")
3434
}
3535

cmd/actions/starter.go renamed to app/fluentcli/actions/starter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package actions
22

33
import (
4-
"github.com/fluent-qa/qgops/internal/utils/shell"
4+
"github.com/fluent-qa/qgops/pkg/utils/shell"
55
"github.com/spf13/cobra"
66
_ "log/slog"
77
"path"

cmd/actions/starter_test.go renamed to app/fluentcli/actions/starter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"path"
77
"testing"
88

9-
"github.com/fluent-qa/qgops/internal/utils/shell"
9+
"github.com/fluent-qa/qgops/pkg/utils/shell"
1010
)
1111

1212
func TestCreateStartProject(t *testing.T) {
File renamed without changes.
File renamed without changes.
File renamed without changes.

cmd/fluent.go renamed to app/fluentcli/fluent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package main
22

33
import (
4-
"github.com/fluent-qa/qgops/cmd/actions"
5-
"github.com/fluent-qa/qgops/cmd/base"
4+
"github.com/fluent-qa/qgops/app/fluentcli/actions"
5+
"github.com/fluent-qa/qgops/app/fluentcli/base"
66
)
77

88
func init() {

app/glance/cli.go

Lines changed: 0 additions & 43 deletions
This file was deleted.

app/glance/config.go

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)