mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-26 22:09:54 +00:00
Add cli stub for magic-folder status command
This commit is contained in:
parent
af10ab43ee
commit
3df0a82a38
@ -196,6 +196,17 @@ def leave(options):
|
|||||||
print >>options.stderr, ("Warning: unable to remove %s due to %s: %s"
|
print >>options.stderr, ("Warning: unable to remove %s due to %s: %s"
|
||||||
% (quote_local_unicode_path(f), e.__class__.__name__, str(e)))
|
% (quote_local_unicode_path(f), e.__class__.__name__, str(e)))
|
||||||
|
|
||||||
|
class StatusOptions(BasedirOptions):
|
||||||
|
nickname = None
|
||||||
|
synopsis = ""
|
||||||
|
stdin = StringIO("")
|
||||||
|
def parseArgs(self):
|
||||||
|
BasedirOptions.parseArgs(self)
|
||||||
|
node_url_file = os.path.join(self['node-directory'], u"node.url")
|
||||||
|
self['node-url'] = open(node_url_file, "r").read().strip()
|
||||||
|
|
||||||
|
def status(options):
|
||||||
|
# XXX todo: use http interface to ask about our magic-folder upload status
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
class MagicFolderCommand(BaseOptions):
|
class MagicFolderCommand(BaseOptions):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user