cmd

package
v0.0.0-...-b64e6e3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Copyright © 2019 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var LINUX_EXTENSIONS []string

Functions

func Execute

func Execute()

func FindFile

func FindFile(
	dir string,
	prefix string,
	suffix string,
	extensions []string,
	vip *viper.Viper,
) (cmdFilePath string, err error)

func LinkFiles

func LinkFiles(curViper *viper.Viper, bakupName string)

func RestoreBackupFiles

func RestoreBackupFiles()

func Unuse

func Unuse()

Types

type BackupFileInfo

type BackupFileInfo struct {
	Location string `yaml:"location"`
	Contents string `yaml:"contents"`
}

used by use and unuse

type LinuxInfo

type LinuxInfo struct {
	Distro, Arch, Release, CodeName string
}

type SSHKeyInfo

type SSHKeyInfo struct {
	Id int `json:"id"`
}
type ToLink struct {
	Src, Target string
}

type TokenInfo

type TokenInfo struct {
	Id    int    `json:"id"`
	Token string `json:"token"`
}

type TokenPayload

type TokenPayload struct {
	Note   string   `json:"note"`
	Scopes []string `json:"scopes"`
}

type TplInfo

type TplInfo struct {
	Home     string
	ZetupDir string
}

type UserInfo

type UserInfo struct {
	GithubUsername string `json:"login"`
	Email          string `json:"email"`
	Name           string `json:"name"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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