MCPcopy Index your code
hub / github.com/fastmonkeys/stellar / list

Function list

stellar/command.py:74–84  ·  view source on GitHub ↗

Returns a list of snapshots

()

Source from the content-addressed store, hash-verified

72
73@stellar.command()
74def 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()

Callers

nothing calls this directly

Calls 2

get_appFunction · 0.85
get_snapshotsMethod · 0.80

Tested by

no test coverage detected