cmd

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Copyright © 2023 Florian Obersteiner <f.obersteiner@posteo.de>

License: see LICENSE in the root directory of the repo.

Copyright © 2023 Florian Obersteiner <f.obersteiner@posteo.de>

License: see LICENSE in the root directory of the repo.

Copyright © 2023 Florian Obersteiner <f.obersteiner@posteo.de>

License: see LICENSE in the root directory of the repo.

Copyright © 2023 Florian Obersteiner <f.obersteiner@posteo.de>

License: see LICENSE in the root directory of the repo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Mirror

func Mirror(src, dst string, dry, clean, skipHidden bool) error

Mirror mirrors directory 'src' to directory 'dst'.

func SftpMir added in v0.0.13

func SftpMir(local, remote string, creds libsftp.Credentials, reverse, dry, ignorehidden, clean bool) error

SftpMir mirrors directory 'local' to 'remote' (SFTP) or vice versa (see 'reverse' flag).

func Sync

func Sync(src, dst string, dry bool, skipHidden bool) error

Sync synchronizes directory 'src' with directory 'dst'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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