Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/scripts/cli.py

    r4f1dd959 rd3acf82  
    1010_default_nodedir = get_default_nodedir()
    1111
    12 class FilesystemOptions(BaseOptions):
     12class FileStoreOptions(BaseOptions):
    1313    optParameters = [
    1414        ["node-url", "u", None,
     
    4747
    4848
    49 class MakeDirectoryOptions(FilesystemOptions):
     49class MakeDirectoryOptions(FileStoreOptions):
    5050    optParameters = [
    5151        ("format", None, None, "Create a directory with the given format: SDMF or MDMF (case-insensitive)"),
     
    6262    description = """Create a new directory, either unlinked or as a subdirectory."""
    6363
    64 class AddAliasOptions(FilesystemOptions):
     64class AddAliasOptions(FileStoreOptions):
    6565    def parseArgs(self, alias, cap):
    6666        self.alias = argv_to_unicode(alias)
     
    7272    description = """Add a new alias for an existing directory."""
    7373
    74 class CreateAliasOptions(FilesystemOptions):
     74class CreateAliasOptions(FileStoreOptions):
    7575    def parseArgs(self, alias):
    7676        self.alias = argv_to_unicode(alias)
     
    8181    description = """Create a new directory and add an alias for it."""
    8282
    83 class ListAliasesOptions(FilesystemOptions):
     83class ListAliasesOptions(FileStoreOptions):
    8484    synopsis = "[options]"
    8585    description = """Display a table of all configured aliases."""
     
    8888    ]
    8989
    90 class ListOptions(FilesystemOptions):
     90class ListOptions(FileStoreOptions):
    9191    optFlags = [
    9292        ("long", "l", "Use long format: show file sizes, and timestamps."),
     
    125125    The size of mutable files or unknown objects is shown as '?'.
    126126
    127     The date/time shows when this link in the Tahoe filesystem was
    128     last modified.
     127    The date/time shows when this link in the Tahoe grid was last
     128    modified.
    129129    """
    130130
    131 class GetOptions(FilesystemOptions):
     131class GetOptions(FileStoreOptions):
    132132    def parseArgs(self, arg1, arg2=None):
    133133        # tahoe get FOO |less            # write to stdout
     
    157157    """
    158158
    159 class PutOptions(FilesystemOptions):
     159class PutOptions(FileStoreOptions):
    160160    optFlags = [
    161161        ("mutable", "m", "Create a mutable file instead of an immutable one (like --format=SDMF)"),
     
    203203    """
    204204
    205 class CpOptions(FilesystemOptions):
     205class CpOptions(FileStoreOptions):
    206206    optFlags = [
    207207        ("recursive", "r", "Copy source directory recursively."),
     
    250250    """
    251251
    252 class UnlinkOptions(FilesystemOptions):
     252class UnlinkOptions(FileStoreOptions):
    253253    def parseArgs(self, where):
    254254        self.where = argv_to_unicode(where)
     
    261261    description = "Remove a named file from its parent directory."
    262262
    263 class MvOptions(FilesystemOptions):
     263class MvOptions(FileStoreOptions):
    264264    def parseArgs(self, frompath, topath):
    265265        self.from_file = argv_to_unicode(frompath)
     
    280280    """
    281281
    282 class LnOptions(FilesystemOptions):
     282class LnOptions(FileStoreOptions):
    283283    def parseArgs(self, frompath, topath):
    284284        self.from_file = argv_to_unicode(frompath)
     
    312312    pass
    313313
    314 class BackupOptions(FilesystemOptions):
     314class BackupOptions(FileStoreOptions):
    315315    optFlags = [
    316316        ("verbose", "v", "Be noisy about what is happening."),
     
    381381    TO/Archives/(new) TO/Latest'."""
    382382
    383 class WebopenOptions(FilesystemOptions):
     383class WebopenOptions(FileStoreOptions):
    384384    optFlags = [
    385385        ("info", "i", "Open the t=info page for the file"),
     
    395395    page."""
    396396
    397 class ManifestOptions(FilesystemOptions):
     397class ManifestOptions(FileStoreOptions):
    398398    optFlags = [
    399399        ("storage-index", "s", "Only print storage index strings, not pathname+cap."),
     
    410410    starting point."""
    411411
    412 class StatsOptions(FilesystemOptions):
     412class StatsOptions(FileStoreOptions):
    413413    optFlags = [
    414414        ("raw", "r", "Display raw JSON data instead of parsed"),
     
    422422    given starting point."""
    423423
    424 class CheckOptions(FilesystemOptions):
     424class CheckOptions(FileStoreOptions):
    425425    optFlags = [
    426426        ("raw", None, "Display raw JSON data instead of parsed."),
     
    438438    found."""
    439439
    440 class DeepCheckOptions(FilesystemOptions):
     440class DeepCheckOptions(FileStoreOptions):
    441441    optFlags = [
    442442        ("raw", None, "Display raw JSON data instead of parsed."),
Note: See TracChangeset for help on using the changeset viewer.