cmd

package
v0.0.0-...-5b1d6aa Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package cmd contains command implementations

Index

Constants

View Source
const MinimalRequiredReplKoplugin = "v0.0.3"

Variables

View Source
var (
	Host string = "192.168.15.244"
	Port int    = 8080

	Inspector *koreaderinspector.HTTPInspectorClient
)
View Source
var (
	SSHPort         int
	SSHUser         string
	SSHPassword     string
	SSHIdentityPath string
)

Functions

func AddInspectorArgs

func AddInspectorArgs(command *cobra.Command)

func AddSSHFlags

func AddSSHFlags(cmd *cobra.Command)

func Evaluate

func Evaluate(code string) (any, []string, bool, error)

func Execute

func Execute()

func InitializeInspector

func InitializeInspector()

func ShouldSkipUpload

func ShouldSkipUpload(d fs.DirEntry) bool

func UploadDirectory

func UploadDirectory(localPath string, remoteParentDir string, client *sftp.Client) error

Types

type ReplResponse

type ReplResponse struct {
	Error  string        `json:"error"`
	Return string        `json:"ret"`
	Output outputStrings `json:"out"`
}

Jump to

Keyboard shortcuts

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