Update module name

This commit is contained in:
Neeraj Gupta 2023-10-21 14:56:13 +05:30
parent 350d8ed2b0
commit e2007bb7e2
23 changed files with 59 additions and 59 deletions

View file

@ -1,10 +1,10 @@
package cmd
import (
"cli-go/internal/api"
"cli-go/pkg/model"
"context"
"fmt"
"github.com/ente-io/cli/internal/api"
"github.com/ente-io/cli/pkg/model"
"github.com/spf13/cobra"
)

View file

@ -1,8 +1,8 @@
package cmd
import (
"cli-go/pkg"
"fmt"
"github.com/ente-io/cli/pkg"
"os"
"runtime"

2
go.mod
View file

@ -1,4 +1,4 @@
module cli-go
module github.com/ente-io/cli
go 1.20

View file

@ -2,8 +2,8 @@ package crypto
import (
"bufio"
"cli-go/utils/encoding"
"errors"
"github.com/ente-io/cli/utils/encoding"
"golang.org/x/crypto/nacl/box"
"golang.org/x/crypto/nacl/secretbox"
"io"

View file

@ -1,9 +1,9 @@
package internal
import (
"cli-go/internal/api"
"errors"
"fmt"
"github.com/ente-io/cli/internal/api"
"log"
"os"

12
main.go
View file

@ -1,13 +1,13 @@
package main
import (
"cli-go/cmd"
"cli-go/internal"
"cli-go/internal/api"
"cli-go/pkg"
"cli-go/pkg/secrets"
"cli-go/utils/constants"
"fmt"
"github.com/ente-io/cli/cmd"
"github.com/ente-io/cli/internal"
"github.com/ente-io/cli/internal/api"
"github.com/ente-io/cli/pkg"
"github.com/ente-io/cli/pkg/secrets"
"github.com/ente-io/cli/utils/constants"
"log"
"strings"
)

View file

@ -1,13 +1,13 @@
package pkg
import (
"cli-go/internal"
"cli-go/internal/api"
"cli-go/pkg/model"
"cli-go/utils/encoding"
"context"
"encoding/json"
"fmt"
"github.com/ente-io/cli/internal"
"github.com/ente-io/cli/internal/api"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/utils/encoding"
"log"
bolt "go.etcd.io/bbolt"

View file

@ -1,10 +1,10 @@
package pkg
import (
"cli-go/pkg/model"
"cli-go/utils/encoding"
"context"
"fmt"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/utils/encoding"
)
func boltAEKey(entry *model.AlbumFileEntry) []byte {

View file

@ -1,9 +1,9 @@
package pkg
import (
"cli-go/internal/api"
"cli-go/pkg/secrets"
"fmt"
"github.com/ente-io/cli/internal/api"
"github.com/ente-io/cli/pkg/secrets"
bolt "go.etcd.io/bbolt"
"log"
"os"

View file

@ -1,10 +1,10 @@
package pkg
import (
"cli-go/pkg/model"
"cli-go/pkg/model/export"
"encoding/json"
"errors"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/pkg/model/export"
"io"
"os"
"strings"

View file

@ -2,12 +2,12 @@ package pkg
import (
"archive/zip"
"cli-go/internal/crypto"
"cli-go/pkg/model"
"cli-go/utils"
"cli-go/utils/encoding"
"context"
"fmt"
"github.com/ente-io/cli/internal/crypto"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/utils"
"github.com/ente-io/cli/utils/encoding"
"io"
"log"
"os"

View file

@ -1,15 +1,15 @@
package mapper
import (
"cli-go/internal/api"
eCrypto "cli-go/internal/crypto"
"cli-go/pkg/model"
"cli-go/pkg/model/export"
"cli-go/pkg/secrets"
"cli-go/utils/encoding"
"context"
"encoding/json"
"errors"
"github.com/ente-io/cli/internal/api"
eCrypto "github.com/ente-io/cli/internal/crypto"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/pkg/model/export"
"github.com/ente-io/cli/pkg/secrets"
"github.com/ente-io/cli/utils/encoding"
"log"
)

View file

@ -1,8 +1,8 @@
package model
import (
"cli-go/internal/api"
"fmt"
"github.com/ente-io/cli/internal/api"
)
type Account struct {

View file

@ -1,8 +1,8 @@
package model
import (
"cli-go/internal/crypto"
"cli-go/utils/encoding"
"github.com/ente-io/cli/internal/crypto"
"github.com/ente-io/cli/utils/encoding"
"log"
)

View file

@ -1,8 +1,8 @@
package model
import (
"cli-go/pkg/model/export"
"fmt"
"github.com/ente-io/cli/pkg/model/export"
"sort"
"time"
)

View file

@ -1,12 +1,12 @@
package pkg
import (
"cli-go/pkg/mapper"
"cli-go/pkg/model"
"cli-go/utils/encoding"
"context"
"encoding/json"
"fmt"
"github.com/ente-io/cli/pkg/mapper"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/utils/encoding"
"log"
"strconv"
"time"

View file

@ -1,11 +1,11 @@
package pkg
import (
"cli-go/pkg/model"
"cli-go/pkg/model/export"
"context"
"encoding/json"
"fmt"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/pkg/model/export"
"log"
"os"
"strings"

View file

@ -1,14 +1,14 @@
package pkg
import (
"cli-go/pkg/mapper"
"cli-go/pkg/model"
"cli-go/pkg/model/export"
"cli-go/utils"
"context"
"encoding/json"
"errors"
"fmt"
"github.com/ente-io/cli/pkg/mapper"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/pkg/model/export"
"github.com/ente-io/cli/utils"
"log"
"os"
"path/filepath"

View file

@ -1,12 +1,12 @@
package secrets
import (
"cli-go/internal/api"
eCrypto "cli-go/internal/crypto"
"cli-go/pkg/model"
"cli-go/utils/encoding"
"context"
"fmt"
"github.com/ente-io/cli/internal/api"
eCrypto "github.com/ente-io/cli/internal/crypto"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/utils/encoding"
)
type KeyHolder struct {

View file

@ -1,10 +1,10 @@
package secrets
import (
"cli-go/utils/constants"
"crypto/rand"
"errors"
"fmt"
"github.com/ente-io/cli/utils/constants"
"log"
"os"

View file

@ -1,13 +1,13 @@
package pkg
import (
"cli-go/internal"
"cli-go/internal/api"
eCrypto "cli-go/internal/crypto"
"cli-go/pkg/model"
"cli-go/utils/encoding"
"context"
"fmt"
"github.com/ente-io/cli/internal"
"github.com/ente-io/cli/internal/api"
eCrypto "github.com/ente-io/cli/internal/crypto"
"github.com/ente-io/cli/pkg/model"
"github.com/ente-io/cli/utils/encoding"
"log"
"github.com/kong/go-srp"

View file

@ -1,9 +1,9 @@
package pkg
import (
"cli-go/pkg/model"
"context"
"fmt"
"github.com/ente-io/cli/pkg/model"
"log"
"strconv"
"time"

View file

@ -1,12 +1,12 @@
package pkg
import (
"cli-go/internal"
"cli-go/internal/api"
"cli-go/pkg/model"
"context"
"encoding/base64"
"fmt"
"github.com/ente-io/cli/internal"
"github.com/ente-io/cli/internal/api"
"github.com/ente-io/cli/pkg/model"
"log"
bolt "go.etcd.io/bbolt"