Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Implement snapshot listing in CLI #2234

Merged
merged 1 commit into from
Sep 12, 2020
Merged

Conversation

ip1981
Copy link
Member

@ip1981 ip1981 commented Sep 10, 2020

USAGE:
    iml snapshot list <fsname> --display <display-type>

For more information try --help
[root@adm ~]# iml snapshot list zfsmo
+------------+----------+---------------------------------+-----------+-------------+
| Filesystem | Snapshot | Creation Time                   | State     | Comment     |
+============+==========+=================================+===========+=============+
| zfsmo      | foo1     | Wed, 09 Sep 2020 12:58:56 +0000 | unmounted | --          |
+------------+----------+---------------------------------+-----------+-------------+
| zfsmo      | foo2     | Wed, 09 Sep 2020 14:01:40 +0000 | unmounted | hello world |
+------------+----------+---------------------------------+-----------+-------------+

Signed-off-by: Igor Pashev pashev.igor@gmail.com


This change is Reviewable

@ip1981 ip1981 requested a review from a team September 10, 2020 14:24
@ip1981 ip1981 self-assigned this Sep 10, 2020
Signed-off-by: Igor Pashev <pashev.igor@gmail.com>
@@ -176,6 +176,17 @@ pub async fn get<T: serde::de::DeserializeOwned + std::fmt::Debug>(
.map_err(|e| e.into())
}

pub async fn graphql(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this should be a fn in iml_manager_client

@jgrund jgrund merged commit 08998d1 into master Sep 12, 2020
@jgrund jgrund deleted the ip1981/ex-1483-snapshot-cli branch September 12, 2020 14:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants