Commit Graph
3157 Commits
Author SHA1 Message Date
Bala FA 9ebb916902 Use words package from minio for DamerauLevenshteinDistance() (#2075) 2017-03-19 18:25:22 -07:00
Harshavardhana 4369359286 policy/links: Do not list prefixes in recursive mode. (#2070) 2017-03-14 19:41:26 +01:00
Harshavardhana 1dab94c625 Split config-host into remove, list, add commands (#2069)
This PR also adds convenient aliases for

 - remove as `rm`
 - list as `ls`
 - add as `a`

Also brings much needed cleanup.
2017-03-11 18:50:56 -08:00
Harshavardhana 6c0f804f32 vendor update minio-go with new fixes. (#2068) 2017-03-11 00:48:24 +01:00
Anis Elleuch 7991f67863 vendor: Update minio-go to bring #620 fix (#2067)
https://github.com/minio/minio-go/pull/620
2017-03-10 00:14:17 +01:00
Anis Elleuch 22ab1c4901 vendor: Update minio-go to bring #619 fix (#2066)
https://github.com/minio/minio-go/pull/619
2017-03-09 22:15:34 +01:00
Krishna Srinivas 53cb92038a Set secretKeyMaxLen = 100 to accomodate azure's account-key length. (#2054) 2017-03-08 16:53:04 -08:00
Harshavardhana 4425378b37 mc: Code cleanup after running gosimple tool (#2065) 2017-03-08 10:48:45 +01:00
Anis Elleuch 7fda78af40 info: Add sqs ARNs to the output (#2063) 2017-03-07 03:13:49 -08:00
Anis Elleuch 6e8320a6dc cp: Fix guessing if target url is a directory (#2062)
This fixes `mc cp /etc/issue/ /tmp/new_dir/` where
/tmp/new_dir/ doesn't exist yet.
2017-03-07 02:56:14 -08:00
Harshavardhana 99682ecbdb admin: HealObjectInfo can be nil skip it. (#2059)
Fixes #2058
2017-03-03 20:37:04 -08:00
Anis Elleuch bf657a33e3 admin: Add set config command (#2051)
Which works this way: 

```
cat config.json | mc admin config set myminio/
```
2017-03-03 15:18:23 -08:00
Harshavardhana bab1b9302e epoll_wait is not implemented on ARM64 Linux (#2052)
Vendorize the fixes for fsNotify package to avoid
crashes on ARM64 Linux.

Fixes #2047
2017-03-01 15:15:59 -08:00
Anis Elleuch 8ce6f43e35 Stop mirror/diff when difference() sends error (#2049)
The caller of difference() now receives errors so it can
stop mirroring or difference calculation.
2017-03-01 11:06:26 -08:00
Anis Elleuch ecee324c00 admin: Add config get command (#2037) 2017-02-28 14:33:26 -08:00
Harshavardhana 0934a39d73 cli: Fix more commands with inconsistent UI (#2045) 2017-02-28 00:21:46 +01:00
Anis Elleuch 7673ef084d admin: Add info cmd and simplify service status (#2036) 2017-02-27 12:29:12 -08:00
Anis Elleuch 55e010ca52 mirror: Return exit code after mirror/watch error (#2043) 2017-02-27 11:45:16 -08:00
Harshavardhana 1ef242a5c1 Fix all cli commands to have consistent UI (#2040)
Fixes #2038
2017-02-27 11:44:26 -08:00
Harshavardhana 071c71efbc Fix macOS build (#2041)
Fixes #2039
2017-02-27 00:44:09 -08:00
Anis Elleuch 798775775b Use ` instead of unicode single quote (#2033)
‘ is not supported in some dumb terminals, use ` instead
2017-02-25 11:08:32 -08:00
Harshavardhana 2ca601ef22 cli: Remove help sub-command and --version flag (#2030)
This is to bring consistent CLI experience as before.
2017-02-21 23:00:09 +01:00
Nitish Tiwari 1cfb326e2f Update AWS credentials URL (#2031) 2017-02-21 00:55:53 -08:00
Harshavardhana 675fbee1f3 mc: Rewrite update and version command. (#2026)
- Supports docker image
- Supports showing how old your current
  `mc` version is.
2017-02-20 22:04:54 +01:00
Harshavardhana d055f0edac fs: new files and folders created honors umask (#2023)
umask should be honored properly for all write
operations on filesystem. This is in line with
how all unix tools behave.

Fixes #2022
2017-02-19 22:41:56 +01:00
Harshavardhana 1f48b16acb cli: Make sure to add "--help" flag for subcommands. (#2024)
--help is now back and prints properly with command
help template.
2017-02-19 12:30:16 -08:00
Harshavardhana 41d4857d73 Add conflict document regarding midnight commander (#2021) 2017-02-18 21:44:28 -08:00
Harshavardhana f7dbf9a20b Let mc to be compiled with 1.7.5 onwards. 2017-02-18 03:05:34 -08:00
Harshavardhana d7a3a0bce3 Move to go1.8 for all builds. (#2019) 2017-02-17 21:29:53 +01:00
Anis Elleuch 7483cdebfb mirror: Quit after showing all progressbar updates (#2020)
mc can quit when mirror terminates but progress bar is not able
to show all made progress. This commit makes mc waits until all updates
are sent to the status channel.
2017-02-17 12:10:01 -08:00
Harshavardhana e7e44b96ee Avoid printing hidden flags and commands with custom help. (#2015)
Always use .VisibleFlags and .VisibleCommands in templates
to avoid printing hidden flags and commands in the help
template.
2017-02-15 02:05:29 -08:00
Anis Elleuch 43388a06ca client-s3: Recursive List() avoids listing buckets (#2014)
This fixes bug in `mc mirror myminio/ /tmp/dir` since objectDifference() can only
take care of mirroring objects.
2017-02-13 13:47:49 -08:00
Anis Elleuch ace3f452c3 mirror: Mirror buckets if only alias is specified (#2006) 2017-02-12 11:20:05 -08:00
Anis Elleuch fb9d10772a help: Use {{.HelpName}} in help/examples template (#2013)
It is easier to use {{.HelpName}} in help text template to print
the mc binary name plus the whole command hierarchy (binary name +
command + subcommand, etc..)
2017-02-12 09:30:00 -08:00
Bala FA a5014a8c71 trie: use trie package in minio. (#2010) 2017-02-10 19:28:45 -08:00
Anis Elleuch 8ce4b39fed admin: Rename creds to password subcommand (#2009)
Use new command "mc admin password" to change creds
2017-02-09 12:13:45 -08:00
Bala FA f01f94a691 rm: fix multiple args handling (#2008) 2017-02-09 01:18:56 -08:00
janv37 04cd5e80ee Add build support for OpenBSD on i386 and amd64 (#2005) 2017-02-08 09:21:24 -08:00
Harshavardhana 4fd1500312 Fix mc admin restart message. 2017-02-07 01:49:43 -08:00
Harshavardhana 5b74d8c444 Bring --watch option back for mirror to make scripting as default. (#2001) 2017-02-06 11:58:20 -08:00
Harshavardhana 1d683ea83e Fix --watch option 2017-02-05 21:06:29 -08:00
Krishnan Parthasarathi 38652b168a Improve note on setting download policy (#1998) 2017-02-04 10:53:01 -08:00
Harshavardhana cca8c10f33 mirror: For non-s3 make sure we copy and exit properly. (#1995) 2017-02-03 15:55:44 -08:00
Harshavardhana 2ffa265d8c Add docker file as part of the README.md (#1941) 2017-02-02 15:10:04 -08:00
Anis Elleuch ad850412d2 lock: Update madmin pkg and use duration flag name (#1994)
* Use new errors format returned madmin APIs
* Use duration query name in Locks API
2017-02-01 12:19:27 -08:00
Anis Elleuch 4f0c2bf376 mirror: Avoid session and enable continuous mirror (#1992)
* Watch mode is enabled by default without specifying any flag
* Saving session is removed since mirror is incremental
* Remove the use of queue to simpliy the code
2017-01-31 09:39:39 -08:00
Harshavardhana fa75251c76 Allow saving accessKey, secretKey which is empty. (#1990)
Fixes #1989
2017-01-25 17:42:45 -08:00
Anis Elleuch 3fefebd05d heal: Don't print info if heal obj returns an err (#1988)
When heal object returns an error, just print an error and continue with the
next objects.
2017-01-25 13:50:45 -08:00
Harshavardhana 9d7529118e Add build support for pine64 (#1987)
Also update notify package with new fixes.
2017-01-25 13:37:06 -08:00
Anis Elleuch 507e7672c2 madmin: Update vendorized management API (#1986)
Update to fix an ListObjectsHeal() issue
2017-01-25 22:30:21 +01:00