0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/cli
Tanmay Naik ad684ac44b cli: add config and images command
Extends the existing zot CLI to add commands for listing all images and
their details on a zot server.
Listing all images introduces the need for configurations.

Each configuration has a name and URL at the least. Check 'zot config
-h' for more details.

The user can specify the URL of zot server explicitly while running the
command or configure a URL and pass it directly.

Adding a configuration:
zot config add aci-zot <zot-url>

Run 'zot config --help' for more.

Listing all images:
zot images --url <zot-url>

Pass a config instead of the url:
zot images <config-name>

Filter the list of images by image name:
zot images <config-name> --name <image-name>

Run 'zot images --help' for all details

- Stores configurations in '$HOME/.zot' file

Add CLI README
2020-07-02 14:30:35 -04:00
..
BUILD.bazel cli: add config and images command 2020-07-02 14:30:35 -04:00
client.go cli: add config and images command 2020-07-02 14:30:35 -04:00
config_cmd.go cli: add config and images command 2020-07-02 14:30:35 -04:00
config_cmd_test.go cli: add config and images command 2020-07-02 14:30:35 -04:00
image_cmd.go cli: add config and images command 2020-07-02 14:30:35 -04:00
image_cmd_test.go cli: add config and images command 2020-07-02 14:30:35 -04:00
root.go cli: add config and images command 2020-07-02 14:30:35 -04:00
root_test.go cli: add config and images command 2020-07-02 14:30:35 -04:00
searcher.go cli: add config and images command 2020-07-02 14:30:35 -04:00
service.go cli: add config and images command 2020-07-02 14:30:35 -04:00