clitransfer

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package clitransfer 负责 CLI 的 ZMODEM 识别、本地路径输入和进度展示。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, keyboard io.Reader, display io.Writer, remote io.Writer, incoming io.Reader, options Options) error

Run 在直接交互式 SSH 中默认识别 ZMODEM;ProxyCommand 不调用此适配器。

Types

type Options

type Options struct {
	DownloadDirectory string
	// 注入点供测试验证系统目录,不修改用户系统设置。
	DefaultDirectory func() (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL