Skip to content

Commit

Permalink
move ui package from app into top level internal
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq committed Jan 24, 2023
1 parent 265ef06 commit 357b6d5
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion auth/auth_ui/survey.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"

"github.com/AlecAivazis/survey/v2"
"github.com/rusq/slackdump/v2/internal/app/ui"
"github.com/rusq/slackdump/v2/internal/ui"
)

type Survey struct{}
Expand Down
2 changes: 1 addition & 1 deletion cmd/slackdump/internal/apiconfig/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"

"github.com/rusq/slackdump/v2/cmd/slackdump/internal/golang/base"
"github.com/rusq/slackdump/v2/internal/app/ui"
"github.com/rusq/slackdump/v2/internal/ui"
)

var CmdConfigCheck = &base.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/slackdump/internal/apiconfig/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/rusq/slackdump/v2"
"github.com/rusq/slackdump/v2/cmd/slackdump/internal/cfg"
"github.com/rusq/slackdump/v2/cmd/slackdump/internal/golang/base"
"github.com/rusq/slackdump/v2/internal/app/ui"
"github.com/rusq/slackdump/v2/internal/ui"
)

var CmdConfigNew = &base.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/slackdump/internal/emoji/wizard.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/rusq/slackdump/v2/cmd/slackdump/internal/cfg"
"github.com/rusq/slackdump/v2/cmd/slackdump/internal/golang/base"
"github.com/rusq/slackdump/v2/internal/app/ui"
"github.com/rusq/slackdump/v2/internal/ui"
)

func wizard(ctx context.Context, cmd *base.Command, args []string) error {
Expand Down
4 changes: 2 additions & 2 deletions cmd/slackdump/internal/export/wizard.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/rusq/slackdump/v2/cmd/slackdump/internal/golang/base"
"github.com/rusq/slackdump/v2/export"
"github.com/rusq/slackdump/v2/fsadapter"
"github.com/rusq/slackdump/v2/internal/app/ui"
"github.com/rusq/slackdump/v2/internal/app/ui/ask"
"github.com/rusq/slackdump/v2/internal/ui"
"github.com/rusq/slackdump/v2/internal/ui/ask"
)

func wizExport(ctx context.Context, cmd *base.Command, args []string) error {
Expand Down
4 changes: 2 additions & 2 deletions cmd/slackdump/internal/v1/interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/AlecAivazis/survey/v2"

"github.com/rusq/slackdump/v2/internal/app/config"
"github.com/rusq/slackdump/v2/internal/app/ui"
"github.com/rusq/slackdump/v2/internal/app/ui/ask"
"github.com/rusq/slackdump/v2/internal/ui"
"github.com/rusq/slackdump/v2/internal/ui/ask"
)

var errExit = errors.New("exit")
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/app/ui/ask/dump.go → internal/ui/ask/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/rusq/slackdump/v2/internal/app/ui"
"github.com/rusq/slackdump/v2/internal/structures"
"github.com/rusq/slackdump/v2/internal/ui"
)

// ConversationList asks the user for the list of conversations to dump or
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"time"

"github.com/rusq/slackdump/v2/internal/app/ui"
"github.com/rusq/slackdump/v2/internal/ui"
)

func MaybeTimeRange() (oldest, latest time.Time, err error) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 357b6d5

Please sign in to comment.