Changeset e1839ff3 in trunk
- Timestamp:
- 2023-03-24T15:45:56Z (2 years ago)
- Branches:
- master
- Children:
- 0cd197d
- Parents:
- 76ecdfb7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/scripts/cli.py ¶
r76ecdfb7 re1839ff3 2 2 Ported to Python 3. 3 3 """ 4 from __future__ import unicode_literals5 from __future__ import absolute_import6 from __future__ import division7 from __future__ import print_function8 9 from future.utils import PY210 if PY2:11 from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F40112 13 4 14 5 import os.path, re, fnmatch 15 6 16 try: 17 from allmydata.scripts.types_ import SubCommands, Parameters 18 except ImportError: 19 pass 7 from allmydata.scripts.types_ import SubCommands, Parameters 20 8 21 9 from twisted.python import usage … … 30 18 31 19 class FileStoreOptions(BaseOptions): 32 optParameters = [20 optParameters : Parameters = [ 33 21 ["node-url", "u", None, 34 22 "Specify the URL of the Tahoe gateway node, such as " … … 37 25 ["dir-cap", None, None, 38 26 "Specify which dirnode URI should be used as the 'tahoe' alias."] 39 ] # type: Parameters27 ] 40 28 41 29 def postOptions(self): … … 485 473 Optionally repair any problems found.""" 486 474 487 subCommands = [475 subCommands : SubCommands = [ 488 476 ("mkdir", None, MakeDirectoryOptions, "Create a new directory."), 489 477 ("add-alias", None, AddAliasOptions, "Add a new alias cap."), … … 504 492 ("deep-check", None, DeepCheckOptions, "Check all files/directories reachable from a starting point."), 505 493 ("status", None, TahoeStatusCommand, "Various status information."), 506 ] # type: SubCommands494 ] 507 495 508 496 def mkdir(options):
Note: See TracChangeset
for help on using the changeset viewer.