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:
@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

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 {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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()