1
0
mirror of https://github.com/minio/mc.git synced 2025-07-28 20:01:58 +03:00

Rename mc --> cmd

This commit is contained in:
Harshavardhana
2016-08-17 18:24:00 -07:00
parent 22670acfbe
commit 2ea2ec90d2
83 changed files with 92 additions and 92 deletions

View File

@ -19,31 +19,31 @@ verifiers: vet fmt lint cyclo deadcode spelling
vet: vet:
@echo "Running $@:" @echo "Running $@:"
@GO15VENDOREXPERIMENT=1 go tool vet -all *.go @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 -all ./pkg
@GO15VENDOREXPERIMENT=1 go tool vet -shadow=true *.go @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 @GO15VENDOREXPERIMENT=1 go tool vet -shadow=true ./pkg
spelling: spelling:
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell *.go @GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell *.go
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell mc/* @GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell cmd/*
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell pkg/**/* @GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell pkg/**/*
fmt: fmt:
@echo "Running $@:" @echo "Running $@:"
@GO15VENDOREXPERIMENT=1 gofmt -s -l *.go @GO15VENDOREXPERIMENT=1 gofmt -s -l *.go
@GO15VENDOREXPERIMENT=1 gofmt -s -l mc @GO15VENDOREXPERIMENT=1 gofmt -s -l cmd
@GO15VENDOREXPERIMENT=1 gofmt -s -l pkg @GO15VENDOREXPERIMENT=1 gofmt -s -l pkg
lint: lint:
@echo "Running $@:" @echo "Running $@:"
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint . @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... @GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint github.com/minio/mc/pkg...
cyclo: cyclo:
@echo "Running $@:" @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 @GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/gocyclo -over 40 pkg
deadcode: deadcode:
@ -54,7 +54,7 @@ build: getdeps verifiers
test: getdeps verifiers test: getdeps verifiers
@echo "Running all testing:" @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... @GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/mc/pkg...
gomake-all: build gomake-all: build

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
// isValidAccessPERM - is provided access perm string supported. // isValidAccessPERM - is provided access perm string supported.
func (b accessPerms) isValidAccessPERM() bool { func (b accessPerms) isValidAccessPERM() bool {

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"sync" "sync"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
var ( var (
// MCVersion - version time.RFC3339. // MCVersion - version time.RFC3339.

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"errors" "errors"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import "fmt" import "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"io" "io"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"errors" "errors"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
// bucketHandler is an http.Handler that verifies bucket responses and validates incoming requests // bucketHandler is an http.Handler that verifies bucket responses and validates incoming requests
import ( import (

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import . "gopkg.in/check.v1" import . "gopkg.in/check.v1"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"io" "io"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"io" "io"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import "github.com/minio/cli" import "github.com/minio/cli"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
/////////////////// Config V1 /////////////////// /////////////////// Config V1 ///////////////////
type hostConfigV1 struct { type hostConfigV1 struct {

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"regexp" "regexp"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"sync" "sync"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"os" "os"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bufio" "bufio"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"path/filepath" "path/filepath"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"math" "math"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import "github.com/minio/cli" import "github.com/minio/cli"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import "github.com/minio/cli" import "github.com/minio/cli"

View File

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
func normalizePath(path string) string { func normalizePath(path string) string {
return path return path

View File

@ -16,7 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"path/filepath" "path/filepath"

View File

@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
// Package mc contains all the global variables and constants. ONLY TO BE ACCESSED VIA GET/SET FUNCTIONS. // Package cmd contains all the global variables and constants. ONLY TO BE ACCESSED VIA GET/SET FUNCTIONS.
package mc package cmd
import ( import (
"github.com/minio/cli" "github.com/minio/cli"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"strings" "strings"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,4 +14,4 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"path/filepath" "path/filepath"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bufio" "bufio"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"os" "os"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import "github.com/minio/mc/pkg/console" import "github.com/minio/mc/pkg/console"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"io" "io"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"os" "os"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"os" "os"

View File

@ -14,9 +14,9 @@
* limitations under the License. * 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. // two separate files. Session data contains fully prepared URL list.
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"os" "os"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"os" "os"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"os" "os"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"time" "time"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"os" "os"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"os" "os"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"github.com/minio/mc/pkg/console" "github.com/minio/mc/pkg/console"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
// Package mc - This file implements a simple trie tree to be used for 'mc' cli commands. // Package cmd - This file implements a simple trie tree to be used for 'mc' cli commands.
package mc package cmd
// This package borrows idea from - https://godoc.org/golang.org/x/text/internal/triegen. // This package borrows idea from - https://godoc.org/golang.org/x/text/internal/triegen.

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"errors" "errors"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import "github.com/minio/minio/pkg/probe" import "github.com/minio/minio/pkg/probe"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"math/rand" "math/rand"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"net/http" "net/http"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package mc package cmd
import ( import (
"fmt" "fmt"

View File

@ -16,7 +16,7 @@
package main package main
import mc "github.com/minio/mc/mc" import mc "github.com/minio/mc/cmd"
func main() { func main() {
mc.Main() mc.Main()