changed package command to mc (#1796)

* changed package command to mc

* changed package from command to mc
This commit is contained in:
Remco Verhoef
2016-08-15 09:05:52 -07:00
committed by Anand Babu (AB) Periasamy
parent 951429fe67
commit 3603766f1c
80 changed files with 93 additions and 93 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 ./command
@GO15VENDOREXPERIMENT=1 go tool vet -all ./mc
@GO15VENDOREXPERIMENT=1 go tool vet -all ./pkg
@GO15VENDOREXPERIMENT=1 go tool vet -shadow=true *.go
@GO15VENDOREXPERIMENT=1 go tool vet -shadow=true ./command
@GO15VENDOREXPERIMENT=1 go tool vet -shadow=true ./mc
@GO15VENDOREXPERIMENT=1 go tool vet -shadow=true ./pkg
spelling:
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell *
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell command/*
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell mc/*
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/misspell pkg/**/*
fmt:
@echo "Running $@:"
@GO15VENDOREXPERIMENT=1 gofmt -s -l *.go
@GO15VENDOREXPERIMENT=1 gofmt -s -l command
@GO15VENDOREXPERIMENT=1 gofmt -s -l mc
@GO15VENDOREXPERIMENT=1 gofmt -s -l pkg
lint:
@echo "Running $@:"
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint .
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint github.com/minio/mc/command...
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint github.com/minio/mc/mc...
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/golint github.com/minio/mc/pkg...
cyclo:
@echo "Running $@:"
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/gocyclo -over 40 command
@GO15VENDOREXPERIMENT=1 $(GOPATH)/bin/gocyclo -over 40 mc
@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/command...
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/mc/mc...
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/mc/pkg...
gomake-all: build
+1 -1
View File
@@ -19,7 +19,7 @@ install:
# to run your custom scripts instead of automatic MSBuild
build_script:
- go test -race github.com/minio/mc/command...
- go test -race github.com/minio/mc/mc...
- go test -race github.com/minio/mc/pkg...
- go test -coverprofile=coverage.txt -covermode=atomic
- go run buildscripts/gen-ldflags.go > temp.txt
+4 -4
View File
@@ -28,10 +28,10 @@ import (
func genLDFlags(version string) string {
var ldflagsStr string
ldflagsStr = "-X github.com/minio/mc/command.MCVersion=" + version + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/command.MCReleaseTag=" + releaseTag(version) + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/command.MCCommitID=" + commitID() + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/command.MCShortCommitID=" + commitID()[:12]
ldflagsStr = "-X github.com/minio/mc/mc.MCVersion=" + version + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/mc.MCReleaseTag=" + releaseTag(version) + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/mc.MCCommitID=" + commitID() + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/mc.MCShortCommitID=" + commitID()[:12]
return ldflagsStr
}
+2 -2
View File
@@ -16,8 +16,8 @@
package main
import command "github.com/minio/mc/command"
import mc "github.com/minio/mc/mc"
func main() {
command.Main()
mc.Main()
}
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
// isValidAccessPERM - is provided access perm string supported.
func (b accessPerms) isValidAccessPERM() bool {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"sync"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"bytes"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
var (
// MCVersion - version time.RFC3339.
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"errors"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import "fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"io"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"bytes"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"bytes"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"bytes"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"errors"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
// 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 command
package mc
import (
"bytes"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import . "gopkg.in/check.v1"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"io"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"io"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import "github.com/minio/cli"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
/////////////////// Config V1 ///////////////////
type hostConfigV1 struct {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"regexp"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"sync"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"bytes"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"bufio"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"path/filepath"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"math"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import "github.com/minio/cli"
@@ -16,7 +16,7 @@
* limitations under the License.
*/
package command
package mc
func normalizePath(path string) string {
return path
@@ -16,7 +16,7 @@
* limitations under the License.
*/
package command
package mc
import (
"path/filepath"
+2 -2
View File
@@ -14,8 +14,8 @@
* limitations under the License.
*/
// Package command contains all the global variables and constants. ONLY TO BE ACCESSED VIA GET/SET FUNCTIONS.
package command
// Package mc contains all the global variables and constants. ONLY TO BE ACCESSED VIA GET/SET FUNCTIONS.
package mc
import (
"github.com/minio/cli"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"strings"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
+1 -1
View File
@@ -14,4 +14,4 @@
* limitations under the License.
*/
package command
package mc
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"bytes"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"path/filepath"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"bufio"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import "github.com/minio/mc/pkg/console"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"io"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"os"
+2 -2
View File
@@ -14,9 +14,9 @@
* limitations under the License.
*/
// Package command - session V7 - Version 7 stores session header and session data in
// Package mc - session V7 - Version 7 stores session header and session data in
// two separate files. Session data contains fully prepared URL list.
package command
package mc
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"os"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"os"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"time"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"os"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"bytes"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"os"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"github.com/minio/mc/pkg/console"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"
+2 -2
View File
@@ -14,8 +14,8 @@
* limitations under the License.
*/
// Package command - This file implements a simple trie tree to be used for 'mc' cli commands.
package command
// Package mc - This file implements a simple trie tree to be used for 'mc' cli commands.
package mc
// This package borrows idea from - https://godoc.org/golang.org/x/text/internal/triegen.
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"errors"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import "github.com/minio/minio/pkg/probe"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"math/rand"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"encoding/json"
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"net/http"
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package command
package mc
import (
"fmt"