Skip to content

Commit

Permalink
survey -> huh, remove v2 app
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq committed Dec 31, 2023
1 parent 4616793 commit e63c6cb
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 363 deletions.
37 changes: 0 additions & 37 deletions internal/app/app.go

This file was deleted.

205 changes: 0 additions & 205 deletions internal/app/dump.go

This file was deleted.

21 changes: 0 additions & 21 deletions internal/app/emoji/emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ import (
"sync"

"github.com/rusq/fsadapter"
"github.com/rusq/slackdump/v2"
"github.com/rusq/slackdump/v2/auth"
"github.com/rusq/slackdump/v2/internal/app/config"
"github.com/rusq/slackdump/v2/logger"
)

Expand All @@ -40,24 +37,6 @@ const (

var fetchFn = fetchEmoji

// Download saves all emojis to "emoji" subdirectory of the Output.Base directory
// or archive.
func Download(ctx context.Context, cfg config.Params, prov auth.Provider) error {

fsa, err := fsadapter.New(cfg.Output.Base)
if err != nil {
return fmt.Errorf("unable to initialise adapter for %s: %w", cfg.Output.Base, err)
}
defer fsa.Close()

sess, err := slackdump.New(ctx, prov, slackdump.WithFilesystem(fsa), slackdump.WithLogger(logger.FromContext(ctx)))
if err != nil {
return err
}

return DlFS(ctx, sess, fsa, cfg.Emoji.FailOnError)
}

//go:generate mockgen -source emoji.go -destination emoji_mock_test.go -package emoji
type emojidumper interface {
DumpEmojis(ctx context.Context) (map[string]string, error)
Expand Down
68 changes: 0 additions & 68 deletions internal/app/export.go

This file was deleted.

1 change: 1 addition & 0 deletions internal/ui/filesystem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func init() {
}

func TestFileselector(t *testing.T) {
t.Skip()
t.Run("filename set", func(t *testing.T) {
var filename string
testFn := func(stdio terminal.Stdio) error {
Expand Down
Loading

0 comments on commit e63c6cb

Please sign in to comment.