Changes in src/allmydata/scripts/cli.py [4f1dd959:d3acf82] in trunk
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/scripts/cli.py ¶
r4f1dd959 rd3acf82 10 10 _default_nodedir = get_default_nodedir() 11 11 12 class File systemOptions(BaseOptions):12 class FileStoreOptions(BaseOptions): 13 13 optParameters = [ 14 14 ["node-url", "u", None, … … 47 47 48 48 49 class MakeDirectoryOptions(File systemOptions):49 class MakeDirectoryOptions(FileStoreOptions): 50 50 optParameters = [ 51 51 ("format", None, None, "Create a directory with the given format: SDMF or MDMF (case-insensitive)"), … … 62 62 description = """Create a new directory, either unlinked or as a subdirectory.""" 63 63 64 class AddAliasOptions(File systemOptions):64 class AddAliasOptions(FileStoreOptions): 65 65 def parseArgs(self, alias, cap): 66 66 self.alias = argv_to_unicode(alias) … … 72 72 description = """Add a new alias for an existing directory.""" 73 73 74 class CreateAliasOptions(File systemOptions):74 class CreateAliasOptions(FileStoreOptions): 75 75 def parseArgs(self, alias): 76 76 self.alias = argv_to_unicode(alias) … … 81 81 description = """Create a new directory and add an alias for it.""" 82 82 83 class ListAliasesOptions(File systemOptions):83 class ListAliasesOptions(FileStoreOptions): 84 84 synopsis = "[options]" 85 85 description = """Display a table of all configured aliases.""" … … 88 88 ] 89 89 90 class ListOptions(File systemOptions):90 class ListOptions(FileStoreOptions): 91 91 optFlags = [ 92 92 ("long", "l", "Use long format: show file sizes, and timestamps."), … … 125 125 The size of mutable files or unknown objects is shown as '?'. 126 126 127 The date/time shows when this link in the Tahoe filesystem was128 lastmodified.127 The date/time shows when this link in the Tahoe grid was last 128 modified. 129 129 """ 130 130 131 class GetOptions(File systemOptions):131 class GetOptions(FileStoreOptions): 132 132 def parseArgs(self, arg1, arg2=None): 133 133 # tahoe get FOO |less # write to stdout … … 157 157 """ 158 158 159 class PutOptions(File systemOptions):159 class PutOptions(FileStoreOptions): 160 160 optFlags = [ 161 161 ("mutable", "m", "Create a mutable file instead of an immutable one (like --format=SDMF)"), … … 203 203 """ 204 204 205 class CpOptions(File systemOptions):205 class CpOptions(FileStoreOptions): 206 206 optFlags = [ 207 207 ("recursive", "r", "Copy source directory recursively."), … … 250 250 """ 251 251 252 class UnlinkOptions(File systemOptions):252 class UnlinkOptions(FileStoreOptions): 253 253 def parseArgs(self, where): 254 254 self.where = argv_to_unicode(where) … … 261 261 description = "Remove a named file from its parent directory." 262 262 263 class MvOptions(File systemOptions):263 class MvOptions(FileStoreOptions): 264 264 def parseArgs(self, frompath, topath): 265 265 self.from_file = argv_to_unicode(frompath) … … 280 280 """ 281 281 282 class LnOptions(File systemOptions):282 class LnOptions(FileStoreOptions): 283 283 def parseArgs(self, frompath, topath): 284 284 self.from_file = argv_to_unicode(frompath) … … 312 312 pass 313 313 314 class BackupOptions(File systemOptions):314 class BackupOptions(FileStoreOptions): 315 315 optFlags = [ 316 316 ("verbose", "v", "Be noisy about what is happening."), … … 381 381 TO/Archives/(new) TO/Latest'.""" 382 382 383 class WebopenOptions(File systemOptions):383 class WebopenOptions(FileStoreOptions): 384 384 optFlags = [ 385 385 ("info", "i", "Open the t=info page for the file"), … … 395 395 page.""" 396 396 397 class ManifestOptions(File systemOptions):397 class ManifestOptions(FileStoreOptions): 398 398 optFlags = [ 399 399 ("storage-index", "s", "Only print storage index strings, not pathname+cap."), … … 410 410 starting point.""" 411 411 412 class StatsOptions(File systemOptions):412 class StatsOptions(FileStoreOptions): 413 413 optFlags = [ 414 414 ("raw", "r", "Display raw JSON data instead of parsed"), … … 422 422 given starting point.""" 423 423 424 class CheckOptions(File systemOptions):424 class CheckOptions(FileStoreOptions): 425 425 optFlags = [ 426 426 ("raw", None, "Display raw JSON data instead of parsed."), … … 438 438 found.""" 439 439 440 class DeepCheckOptions(File systemOptions):440 class DeepCheckOptions(FileStoreOptions): 441 441 optFlags = [ 442 442 ("raw", None, "Display raw JSON data instead of parsed."),
Note: See TracChangeset
for help on using the changeset viewer.