Rename mc --> cmd

This commit is contained in:
Harshavardhana
2016-08-17 18:26:18 -07:00
parent 22670acfbe
commit 2ea2ec90d2
83 changed files with 92 additions and 92 deletions
+7 -7
View File
@@ -19,31 +19,31 @@ verifiers: vet fmt lint cyclo deadcode spelling
vet:
@echo "Running $@:"
@GO15VENDOREXPERIMENT=1 go tool vet -all *.go
@GO15VENDOREXPERIMENT=1 go tool vet -all ./mc
@GO15VENDOREXPERIMENT=1 go tool vet -all ./cmd
@GO15VENDOREXPERIMENT=1 go tool vet -all ./pkg
@GO15VENDOREXPERIMENT=1 go tool vet -shadow=true *.go
@GO15VENDOREXPERIMENT=1 go tool vet -shadow=true ./mc
@GO15VENDOREXPERIMENT=1 go tool vet -shadow=true ./cmd
@GO15VENDOREXPERIMENT=1 go tool vet -shadow=true ./pkg
spelling:
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell *.go
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell mc/*
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell cmd/*
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell pkg/**/*
fmt:
@echo "Running $@:"
@GO15VENDOREXPERIMENT=1 gofmt -s -l *.go
@GO15VENDOREXPERIMENT=1 gofmt -s -l mc
@GO15VENDOREXPERIMENT=1 gofmt -s -l cmd
@GO15VENDOREXPERIMENT=1 gofmt -s -l pkg
lint:
@echo "Running $@:"
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint .
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint github.com/minio/mc/mc...
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint github.com/minio/mc/cmd...
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint github.com/minio/mc/pkg...
cyclo:
@echo "Running $@:"
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/gocyclo -over 40 mc
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/gocyclo -over 40 cmd
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/gocyclo -over 40 pkg
deadcode:
@@ -54,7 +54,7 @@ build: getdeps verifiers
test: getdeps verifiers
@echo "Running all testing:"
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/mc/mc...
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/mc/cmd...
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/mc/pkg...
gomake-all: build
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
// isValidAccessPERM - is provided access perm string supported.
func (b accessPerms) isValidAccessPERM() bool {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"sync"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bytes"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
var (
// MCVersion - version time.RFC3339.
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"errors"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import "fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"io"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bytes"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bytes"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bytes"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"errors"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
// bucketHandler is an http.Handler that verifies bucket responses and validates incoming requests
import (
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bytes"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import . "gopkg.in/check.v1"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"io"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"io"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import "github.com/minio/cli"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
/////////////////// Config V1 ///////////////////
type hostConfigV1 struct {
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"regexp"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"sync"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bytes"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bufio"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"path/filepath"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"math"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import "github.com/minio/cli"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import "github.com/minio/cli"
+1 -1
View File
@@ -16,7 +16,7 @@
* limitations under the License.
*/
package mc
package cmd
func normalizePath(path string) string {
return path
@@ -16,7 +16,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"path/filepath"
+2 -2
View File
@@ -14,8 +14,8 @@
* limitations under the License.
*/
// Package mc contains all the global variables and constants. ONLY TO BE ACCESSED VIA GET/SET FUNCTIONS.
package mc
// Package cmd contains all the global variables and constants. ONLY TO BE ACCESSED VIA GET/SET FUNCTIONS.
package cmd
import (
"github.com/minio/cli"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"strings"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,4 +14,4 @@
* limitations under the License.
*/
package mc
package cmd
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bytes"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"path/filepath"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bufio"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import "github.com/minio/mc/pkg/console"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"io"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"os"
+2 -2
View File
@@ -14,9 +14,9 @@
* limitations under the License.
*/
// Package mc - session V7 - Version 7 stores session header and session data in
// Package cmd - session V7 - Version 7 stores session header and session data in
// two separate files. Session data contains fully prepared URL list.
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"os"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"time"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"os"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"bytes"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"github.com/minio/mc/pkg/console"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+2 -2
View File
@@ -14,8 +14,8 @@
* limitations under the License.
*/
// Package mc - This file implements a simple trie tree to be used for 'mc' cli commands.
package mc
// Package cmd - This file implements a simple trie tree to be used for 'mc' cli commands.
package cmd
// This package borrows idea from - https://godoc.org/golang.org/x/text/internal/triegen.
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"errors"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import "github.com/minio/minio/pkg/probe"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"math/rand"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"net/http"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package mc
package cmd
import (
"fmt"
+1 -1
View File
@@ -16,7 +16,7 @@
package main
import mc "github.com/minio/mc/mc"
import mc "github.com/minio/mc/cmd"
func main() {
mc.Main()