Changes in src/allmydata/scripts/cli.py [d3acf82:4f1dd959] in trunk
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/scripts/cli.py ¶
rd3acf82 r4f1dd959 10 10 _default_nodedir = get_default_nodedir() 11 11 12 class File StoreOptions(BaseOptions):12 class FilesystemOptions(BaseOptions): 13 13 optParameters = [ 14 14 ["node-url", "u", None, … … 47 47 48 48 49 class MakeDirectoryOptions(File StoreOptions):49 class MakeDirectoryOptions(FilesystemOptions): 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 StoreOptions):64 class AddAliasOptions(FilesystemOptions): 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 StoreOptions):74 class CreateAliasOptions(FilesystemOptions): 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 StoreOptions):83 class ListAliasesOptions(FilesystemOptions): 84 84 synopsis = "[options]" 85 85 description = """Display a table of all configured aliases.""" … … 88 88 ] 89 89 90 class ListOptions(File StoreOptions):90 class ListOptions(FilesystemOptions): 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 grid was last128 modified.127 The date/time shows when this link in the Tahoe filesystem was 128 last modified. 129 129 """ 130 130 131 class GetOptions(File StoreOptions):131 class GetOptions(FilesystemOptions): 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 StoreOptions):159 class PutOptions(FilesystemOptions): 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 StoreOptions):205 class CpOptions(FilesystemOptions): 206 206 optFlags = [ 207 207 ("recursive", "r", "Copy source directory recursively."), … … 250 250 """ 251 251 252 class UnlinkOptions(File StoreOptions):252 class UnlinkOptions(FilesystemOptions): 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 StoreOptions):263 class MvOptions(FilesystemOptions): 264 264 def parseArgs(self, frompath, topath): 265 265 self.from_file = argv_to_unicode(frompath) … … 280 280 """ 281 281 282 class LnOptions(File StoreOptions):282 class LnOptions(FilesystemOptions): 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 StoreOptions):314 class BackupOptions(FilesystemOptions): 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 StoreOptions):383 class WebopenOptions(FilesystemOptions): 384 384 optFlags = [ 385 385 ("info", "i", "Open the t=info page for the file"), … … 395 395 page.""" 396 396 397 class ManifestOptions(File StoreOptions):397 class ManifestOptions(FilesystemOptions): 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 StoreOptions):412 class StatsOptions(FilesystemOptions): 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 StoreOptions):424 class CheckOptions(FilesystemOptions): 425 425 optFlags = [ 426 426 ("raw", None, "Display raw JSON data instead of parsed."), … … 438 438 found.""" 439 439 440 class DeepCheckOptions(File StoreOptions):440 class DeepCheckOptions(FilesystemOptions): 441 441 optFlags = [ 442 442 ("raw", None, "Display raw JSON data instead of parsed."),
Note: See TracChangeset
for help on using the changeset viewer.