Граф коммитов

262 Коммитов

Автор SHA1 Сообщение Дата
Moshe Beladev c6cdcd63b5
errors.Is for the missing places
Signed-off-by: Moshe Beladev <moshebe123@gmail.com>
2021-02-01 12:16:34 +02:00
Moshe Beladev c728812a30
use errors.Is
Signed-off-by: Moshe Beladev <moshebe123@gmail.com>
2021-02-01 12:12:04 +02:00
Moshe Beladev dcf563e631
lint fixes
Signed-off-by: Moshe Beladev <moshebe123@gmail.com>
2021-01-31 18:09:38 +02:00
Moshe Beladev 4f3468051a
add license header
Signed-off-by: Moshe Beladev <moshebe123@gmail.com>
2021-01-31 17:25:28 +02:00
Moshe Beladev a32b7fd48f
move error decaleration to a central place
Signed-off-by: Moshe Beladev <moshebe123@gmail.com>
2021-01-31 17:25:27 +02:00
Moshe Beladev 645ce6c610
unexpose errors when possible, add documentation where not
Signed-off-by: Moshe Beladev <moshebe123@gmail.com>
2021-01-31 17:25:27 +02:00
Moshe Beladev 760afc1304
fix the error prints on normal command cancelation
Signed-off-by: Moshe Beladev <moshebe123@gmail.com>
2021-01-31 17:25:27 +02:00
Moshe Beladev 1aa5deb383
fix the verbose logout error displayed when the user is already disconnected
Signed-off-by: Moshe Beladev <moshebe123@gmail.com>
2021-01-31 11:18:32 +02:00
Djordje Lukic adf27a4392
Merge pull request #164 from docker/fix-install-instructions
Fix the install instructions in the README
2021-01-29 11:31:04 +01:00
Djordje Lukic f0bb6d114f Fix the install instructions in the README
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2021-01-29 10:55:15 +01:00
Silvin Lubecki 4b740d34be
Merge pull request #161 from docker/install-hub-tool
Move main.go to root directory
2021-01-13 17:58:10 +01:00
Silvin Lubecki 3528d280b9 Move main.go to root directory, so one can install hub-tool using go install
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2021-01-13 17:39:44 +01:00
Silvin Lubecki 42e4a43405
Merge pull request #160 from docker/remove-buildx-dep
Remove buildx dep
2021-01-13 16:35:05 +01:00
Silvin Lubecki 68e5d30ff8 Add --platform flag to the tag inspect command, so user can specify a platform if the tag points to a multi-arch image
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2021-01-13 16:22:50 +01:00
Silvin Lubecki 098b3f7d50 Removing dependency on buildx, used to display manifest list in tag inspect command
Now this part fits better with manifest display.

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2021-01-13 16:22:50 +01:00
Silvin Lubecki 0f38173b0c
Merge pull request #149 from docker/org-account-info
Improve account info command to check status about an organization
2021-01-12 11:00:55 +01:00
Silvin Lubecki 74241bd495
Merge pull request #153 from thaJeztah/fix_gh_template
Fix binary name in GitHub issue template
2021-01-07 16:23:52 +01:00
Sebastiaan van Stijn 80bf33fe7a
Fix binary name in GitHub issue template
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-01-06 12:59:53 +01:00
Silvin Lubecki a54d65065e Improve account info command to check status about an organization
Show current consumption (seats, private repos and teams)

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2021-01-04 12:20:16 +01:00
Silvin Lubecki 3633a9001a
Merge pull request #148 from docker/fix-indent
Fix some indentation issues
2020-12-22 11:06:26 +01:00
Silvin Lubecki f62b571ca3 Fix some indentation issues
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-12-16 15:18:24 +01:00
Silvin Lubecki 6b067f09a1
Merge pull request #147 from docker/use-buildx
Use buildx for CI
2020-12-16 15:10:28 +01:00
Chris Crone d5d1301f84 build: Use buildx
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-16 12:00:56 +01:00
Silvin Lubecki ab04bec530
Merge pull request #145 from docker/alpine-build
Move to Alpine base build image
2020-12-15 16:48:34 +01:00
Chris Crone 97db9e6999 build: Run validate headers in build step
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-15 15:54:53 +01:00
Chris Crone 2fa5610a91 build: Move to Alpine build image, bump deps
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-15 15:30:32 +01:00
Silvin Lubecki 456674bff1
Merge pull request #146 from docker/docker-deps
Bump Docker Go modules
2020-12-15 14:58:23 +01:00
Chris Crone 1135fb8d7a deps: Bump Docker Go modules
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-15 14:07:12 +01:00
Silvin Lubecki 0edf43ac90
Merge pull request #139 from docker/fix-relog
Fix re-login when token expired
2020-11-23 14:57:02 +01:00
Djordje Lukic acb01a290e Fix re-login when token expired
* if it's a sudo re-login the user
* if not and if the toekn expired, re-login

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-23 14:50:17 +01:00
Djordje Lukic 94bd9cb11f
Merge pull request #138 from docker/token-activate
Remove token update command, replaced with token activate and token deactivate
2020-11-23 11:04:33 +01:00
Chris Crone 190137849c
Merge pull request #135 from docker/gomod-update
Update Go dependencies
2020-11-23 11:01:27 +01:00
Chris Crone ec4e4c0e82 validate: Add debug diff for go mod check
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-23 10:49:44 +01:00
Chris Crone 0ae1842340 mod: Use containerized go mod tidy
Thanks @rumpl!

Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-23 10:49:32 +01:00
Chris Crone de0b456a62 gomod: Update dependencies
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-23 10:46:22 +01:00
Silvin Lubecki 642bb7dbcd Remove token update command, replaced with token activate and token deactivate commands
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-11-20 18:33:59 +01:00
Silvin Lubecki 06a23b6d7b
Merge pull request #137 from docker/fix-sudo-commands
Do not try to 2FA if the user is not logged-in
2020-11-20 18:16:15 +01:00
Djordje Lukic 2d6647521a Do not try to 2FA if the user is not logged-in
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-20 18:12:29 +01:00
Silvin Lubecki 8ad1a0dc0d
Merge pull request #136 from docker/chore-ls-list
Add list alias for all ls commands
2020-11-20 17:39:02 +01:00
Djordje Lukic 7ba9037579 Add list alias for all ls commands
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-20 17:19:31 +01:00
Silvin Lubecki 97aa80f592
Merge pull request #130 from docker/chore-update-readme
Update readme with login
2020-11-20 17:17:01 +01:00
Chris Crone fa9a38c2ec
Merge pull request #134 from docker/gomod
Remove unneeded dependency
2020-11-20 17:07:25 +01:00
Chris Crone a98489ae92 gomod: Remove unneeded dependency
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-20 15:59:06 +01:00
Djordje Lukic 1b14f887c2
Merge pull request #133 from docker/fix-rate-limit
Fix rate-limiting alignement
2020-11-20 15:56:49 +01:00
Djordje Lukic d8f7315fe6 Fix rate limits, show the limit and not the value of the pointer...
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-20 15:51:12 +01:00
Silvin Lubecki d7485c3fa9
Merge pull request #129 from docker/feat-rate-limiting
Implement `hub-tool account rate-limiting`
2020-11-20 15:42:27 +01:00
Djordje Lukic e19cb23204 Implement `hub-tool account rate-limiting`
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-20 15:39:15 +01:00
Chris Crone 5c39f4672e
Merge pull request #132 from docker/login-prompt
Prompt if username is empty on login
2020-11-20 15:20:43 +01:00
Silvin Lubecki cfe11a4a1d
Merge pull request #131 from docker/colors
Correct input colors
2020-11-20 15:13:54 +01:00
Chris Crone 946378c566 commands: Correct input colors
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-20 15:05:54 +01:00