{
  "id": "trzsz",
  "name": "trzsz",
  "homepage": "https://trzsz.github.io/go",
  "description": "trzsz is a simple file transfer tools, similar to lrzsz ( rz / sz ), and compatible with tmux.",
  "executables": [
    "trz",
    "tsz"
  ],
  "dotfiles": {
    "paths": [
      "~/.trzsz.conf"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Receive files (trz)",
    "description": "Run trz on the server to receive files uploaded from a trzsz-capable terminal into a directory. The sending side (tsz), the trzsz wrapper and the tssh client are not covered by this form.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://github.com/trzsz/trzsz-go/blob/main/trzsz/comm.go",
        "revision": "v1.2.0",
        "evidence": "Quiet     bool         `arg:\"-q\" help:\"quiet (hide progress bar)\"`\nOverwrite bool         `arg:\"-y\" help:\"yes, overwrite existing file(s)\"`\nBinary    bool         `arg:\"-b\" help:\"binary transfer mode, faster for binary files\"`\nEscape    bool         `arg:\"-e\" help:\"escape all known control characters\"`\nDirectory bool         `arg:\"-d\" help:\"transfer directories and files\"`\nRecursive bool         `arg:\"-r\" help:\"transfer directories and files, same as -d\"`\nBufsize   bufferSize   `arg:\"-B\" placeholder:\"N\" default:\"10M\" help:\"max buffer chunk size (1K<=N<=1G). (default: 10M)\"`\nTimeout   int          `arg:\"-t\" placeholder:\"N\" default:\"20\" help:\"timeout ( N seconds ) for each buffer chunk.\nN <= 0 means never timeout. (default: 20)\"`\nCompress  compressType `arg:\"-c\" placeholder:\"yes/no/auto\" default:\"auto\" help:\"compress type (default: auto)\"`\nPath string `arg:\"positional\" default:\".\" help:\"path to save file(s). (default: current directory)\"`\n"
      }
    ],
    "field": [
      {
        "id": "path",
        "label": "Save to",
        "description": "Directory to save received files in. Defaults to the current directory.",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "directory",
          "role": "output",
          "must_exist": false
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "directory",
        "label": "Allow directories",
        "description": "Transfer directories as well as files.",
        "type": "boolean",
        "option": [
          "-d"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "overwrite",
        "label": "Overwrite existing files",
        "type": "boolean",
        "option": [
          "-y"
        ],
        "effect": "overwrite",
        "sources": [
          "help"
        ]
      },
      {
        "id": "quiet",
        "label": "Hide progress bar",
        "type": "boolean",
        "option": [
          "-q"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "binary",
        "label": "Binary mode",
        "description": "Faster for binary files.",
        "type": "boolean",
        "option": [
          "-b"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "escape",
        "label": "Escape control characters",
        "type": "boolean",
        "option": [
          "-e"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "compress",
        "label": "Compression",
        "type": "string",
        "option": [
          "-c"
        ],
        "suggestions": [
          {
            "value": "auto",
            "label": "Auto"
          },
          {
            "value": "yes",
            "label": "Yes"
          },
          {
            "value": "no",
            "label": "No"
          }
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "bufsize",
        "label": "Max buffer chunk size",
        "description": "Between 1K and 1G, for example 10M.",
        "type": "string",
        "option": [
          "-B"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "timeout",
        "label": "Chunk timeout (seconds)",
        "description": "0 or less means never time out.",
        "type": "integer",
        "option": [
          "-t"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "receive",
        "label": "Receive into a folder",
        "fields": [
          "path",
          "directory"
        ],
        "required": [
          "path"
        ],
        "set": {
          "directory": [
            true
          ]
        }
      },
      {
        "id": "receive_overwrite",
        "label": "Receive and overwrite",
        "fields": [
          "path",
          "directory",
          "overwrite"
        ],
        "required": [
          "path"
        ],
        "set": {
          "directory": [
            true
          ],
          "overwrite": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "path",
          "directory",
          "overwrite"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "quiet",
          "binary",
          "escape",
          "compress",
          "bufsize",
          "timeout"
        ]
      }
    ]
  }
}
