Returns a list of snapshots
()
| 72 | |
| 73 | @stellar.command() |
| 74 | def list(): |
| 75 | """Returns a list of snapshots""" |
| 76 | snapshots = get_app().get_snapshots() |
| 77 | |
| 78 | click.echo('\n'.join( |
| 79 | '%s: %s' % ( |
| 80 | s.snapshot_name, |
| 81 | humanize.naturaltime(datetime.utcnow() - s.created_at) |
| 82 | ) |
| 83 | for s in snapshots |
| 84 | )) |
| 85 | |
| 86 | |
| 87 | @stellar.command() |
nothing calls this directly
no test coverage detected