1
0
mirror of https://github.com/minio/mc.git synced 2025-11-12 01:02:26 +03:00
Commit Graph

196 Commits

Author SHA1 Message Date
Harshavardhana
0f360131cb Remove runtime checks use go build tag (#2848)
Project can be only built with go1.12 or newer
other build related changes to use new go1.12
features.

Fixes #2815
2019-08-06 15:41:04 -07:00
Harshavardhana
e978c71b7c Add staticcheck based builds (#2788)
Additionally this PR also supports
multi-platform builds to avoid cross
platform build issues.
2019-06-03 11:22:31 -07:00
ebozduman
83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00
Harshavardhana
23a58eb5da mc: Introduce new Dockerfile for mc. (#1938)
This is to build `mc` at hub.docker.com

Fixes #1917
2016-12-31 20:49:05 -08:00
Harshavardhana
2ea2ec90d2 Rename mc --> cmd 2016-08-17 18:26:18 -07:00
Remco Verhoef
3603766f1c changed package command to mc (#1796)
* changed package command to mc

* changed package from command to mc
2016-08-15 09:05:52 -07:00
Harshavardhana
f5ff7e15cf mc: Fix release build flags after recent refactor. (#1794) 2016-08-13 13:49:18 -07:00
Remco Verhoef
b51fb32054 Refacture structure proposal. (#1793) 2016-08-11 15:29:04 -07:00
Anis Elleuch
589c821f9b progress: Switch to chegga pb (#1764) 2016-07-13 14:44:23 -07:00
Anis Elleuch
21b0f4b0d2 Rename access cmd to policy and permissions to none, download, upload and both (#1755) 2016-07-10 03:23:17 -07:00
Harshavardhana
959fa74ca5 profile: Add MC_PROFILER env supporting cpu, mem, block profiling. (#1714)
All profiled outputs are written inside `~/.mc/profile`
2016-05-10 19:10:59 -07:00
Sreeram Boyapati
57d22664f4 config: validate config.json file (#1676)
- Minio Client validates only config host add parameters
    Not the config file. Use the same utils to validate config file

    if HostURL is wrong.
        /storage?googleapis?com for host /storage?googleapis?com is not valid. Could not parse it

    if API is wrong.
        S3v2iasdasd API for host https://www.google.com is not Valid. It is not part of any of the following APIs:
        1. S3v4
        2. S3v2

    If the version is wrong.
        Config version 9 does not match GlobalMCConfiguration 8.

    Example:

    mc: <ERROR> Config version 9 does not match GlobalMCConfiguration 8.

    S3v2asda API for host httpsasdkasd is not Valid. It is not part of any of the following APIs:
    1. S3v4
    2. S3v2

    URL httpsasdkasd for host httpsasdkasd is not valid. Could not parse it.
2016-04-10 21:28:17 -07:00
Harshavardhana
69fbb9a87d mc: Fix Golang version handling.
Migrate to a better go-version package to handle
version numbers.  Default to 'go1.6' as minimum.
2016-04-02 02:51:27 -07:00
Harshavardhana
ea8f5c0f33 windows: Add progress bar windows fixes. 2016-02-19 15:40:38 -08:00
Harshavardhana
6f3cd87993 config: Config folder option should be honored.
The fix is to load config factory once again, to avoid looking for stale
scoped global variables. For example ``mcCustomConfigDir``

Fixes #1611
2016-02-17 15:59:55 -08:00
Super-User
5219fd59e8 porting: mc now properly works on solaris.
Fixes #1603
2016-02-15 15:03:40 -08:00
Harshavardhana
708f1e17f4 mc: Remove contentdb and use golang pkg/mime instead.
This is also because golang package sets proper 'charset's
for contentTypes. Also there is no reason for 'mc' to have
its own mimedb.
2016-02-06 10:43:57 -08:00
Anis Elleuch
acc4b97483 Add Damerau Levenshtein algo to suggest more alternatives to mistyped commmands 2016-01-13 21:32:23 +01:00
Anis Elleuch
31b07812cb Emphasize that subcommands have a help flag 2016-01-08 19:14:47 +01:00
Anis Elleuch
664f982833 Trivial fix of cmd error message, the same for missing dependencies in checkdeps.sh 2016-01-07 22:49:47 +01:00
Anand Babu (AB) Periasamy
0bd1edfd8f new alias style and numerous cleanups. 2015-12-28 15:31:52 -08:00
Harshavardhana
36e7e42637 contentType: use contentDB package from server. 2015-12-04 16:28:26 -08:00
Harshavardhana
9219e1a320 mirror/pipe: Enable mirror and pipe back now they do not work for multiple targets. 2015-11-29 14:43:11 -08:00
Harshavardhana
1badfc8a04 :mc: resumable downloads and support incomplete files on file system. 2015-11-28 18:00:53 -08:00
Anand Babu (AB) Periasamy
f94989dc0a support global flags for both commands and global main
Change-Id: If0939b52ad3ccb8d5ada0118515c2ad398bceef0
2015-11-25 15:08:16 -08:00
Harshavardhana
fd1cde749a mc: Fix setGlobalContext across all commands.
- Always set globals from context before validating input arguments.
- Add missing os.Exit(1) from console.Fatal{f,ln} which was
  accidentally removed from previous commits.

Fixes #1472
2015-11-22 00:33:35 -08:00
Harshavardhana
39ba33f4c6 config: Simplify config further, add more docs. 2015-11-21 16:32:34 -08:00
Anand Babu (AB) Periasamy
269ac7b105 global flags are replaced with command speific flags, but still retain global behavior 2015-11-21 14:20:00 -08:00
Anand Babu (AB) Periasamy
052f73f348 restructure globals and some bug fixes related to globals 2015-11-21 12:43:21 -08:00
Harshavardhana
1a85e97050 session: Make session resume more user friendly 2015-11-19 13:08:13 -08:00
Harshavardhana
34c9896d1d doc: Add various missing documentation across the codebase. 2015-11-18 12:52:46 -08:00
Harshavardhana
cbb937139e docs: Changes necessary for comprehensive doc changes
Fixes #1385, #1384, #1381, #1367, #1363
2015-11-17 09:14:57 -08:00
Anand Babu (AB) Periasamy
e1763a057b show help flag for mc 2015-11-16 12:52:54 -08:00
Harshavardhana
7831917901 help: Re-write help style now each command has --help 2015-11-16 02:21:44 -08:00
Anand Babu (AB) Periasamy
dfbd6e6567 new help command 2015-11-14 23:37:00 -08:00
Anand Babu (AB) Periasamy
365a7579bf share rewrite 2015-11-14 20:16:30 -08:00
Anand Babu (AB) Periasamy
3950402c89 review of cp ls mirror pipe and rm 2015-11-12 01:34:43 -08:00
Anand Babu (AB) Periasamy
ed0dbb835b simplify ls command 2015-11-11 17:45:20 -08:00
Anand Babu (AB) Periasamy
32c7590621 pig became pipe 2015-11-11 00:04:01 -08:00
Anand Babu (AB) Periasamy
970927cc6b simplify setting console theme 2015-11-10 16:45:32 -08:00
Harshavardhana
123e44d8c5 build: Populate mcVersion through ldflags
By default binary built through 'go get github.com/minio/mc'. Will be
considered UNOFFICIAL.GOGET with not versioning, 'go get' binaries
cannot use 'mc update' functionality.

First reasoning towards this is - go build tools have no way to specifying
versions and releases unlike `npm`. For this reason alone we have to
differentiate OFFICIAL and UNOFFICIAL.

Now a 'make' will build appropriate binaries, while 'go get' becomes UNOFFICIAL.
2015-11-02 12:42:17 -08:00
Harshavardhana
a0d7e5f9be Pick release tag from mcReleaseTag 2015-10-25 11:12:36 -07:00
Harshavardhana
ae447a96ad Update probe with new changes and setAppInfo for probe 2015-10-25 11:05:12 -07:00
Anand Babu (AB) Periasamy
48adfcdcd8 updated probe 2015-10-23 17:35:21 -07:00
Anand Babu (AB) Periasamy
3d6b19f833 remove root check 2015-10-22 00:13:32 -07:00
Krishna Srinivas
b4c78a33ff support for "rm" of objects and buckets 2015-10-19 15:11:59 -07:00
Krishna Srinivas
b73d4662e8 remove the un-needed space character in help display which would make the shell prompt offset by a space char. 2015-10-17 02:55:19 -07:00
Harshavardhana
f85e8827e1 Migrate mc package to minio-xl from minio/minio repo for probe/quick 2015-10-17 00:24:14 -07:00
Anand Babu (AB) Periasamy
21a90da0bf new pig command 2015-10-11 01:45:32 -07:00
Harshavardhana
6d95872ad8 Add new --colors option for choosing different coloring styles for console printing
Each command implements and interprets the following coloring styles

 - ``dark`` - default coloring style picks up palette colors Cyan, Red, Blue, White etc
 - ``light`` - lighter chooses white colored console printing.
 - ``nocolor`` - nocolor is for console printing without any colors.

All coloring internally use ASCII color schemes, portable across all known OS.
2015-10-07 17:08:42 -07:00