cmd

package
v0.0.0-...-75717be Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ASIMOV_VERSION = "0.1.0"

Variables

View Source
var (
	Asimov = &cobra.Command{
		Use:   "asimov",
		Short: "Asimov is a backup tool for Robots using FTP.",
		Long: `
	   	  ASIMOV a simple FANUC Robot Backup 
	   	  ==================================

To backup a FANUC Robot the FTP server on the FANUC controller can be used.
To make it simple to download all the files in an repository this tool helps.
This tool provides different kind of backups and a configuration setting to
make it easy to configurate the list and the destination where to backup and
which Robot controller to backup.

AUTHOR:
  Anton Feldmann <anton.feldmann@gmail.com>

`,
	}
)

Functions

func Execute

func Execute()

Types

type BackupConfig

type BackupConfig struct {
	Config_Path string `yaml:"asimov_config_path"`
	Version     string `yaml:"asimov_version"`
	Robots      []robot.Robot
	Destination string `yaml:"asimov_destination"`
}

func (*BackupConfig) AddRobot

func (r *BackupConfig) AddRobot(robot robot.Robot)

func (*BackupConfig) AddRobotByName

func (r *BackupConfig) AddRobotByName(name string, ip string)

func (*BackupConfig) Backup

func (r *BackupConfig) Backup(filter func(string) bool, name string)

func (*BackupConfig) DelRobot

func (r *BackupConfig) DelRobot(name string) *robot.Robot

func (*BackupConfig) GetRobot

func (r *BackupConfig) GetRobot(name string) *robot.Robot

func (*BackupConfig) RemoveRobot

func (r *BackupConfig) RemoveRobot(idx int) *robot.Robot

Jump to

Keyboard shortcuts

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