cscman

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CommandName = "cscman"
View Source
const FindCommandName = "find"
View Source
const RegisterCommandName = "register"
View Source
const Sha256CommandName = "sha256"
View Source
const SyncCommandName = "sync"

Variables

View Source
var Command = &cobra.Command{
	Use: CommandName,
}
View Source
var FindCommand = &cobra.Command{
	Use:  FindCommandName + " FILE",
	Args: cobra.ExactArgs(1),
	Run:  find,
}
View Source
var RegisterCommand = &cobra.Command{
	Use:  RegisterCommandName + " NAME [URL]",
	Args: cobra.RangeArgs(1, 2),
	Run:  register,
}
View Source
var Sha256Command = &cobra.Command{
	Use:  Sha256CommandName + " SHA256",
	Args: cobra.ExactArgs(1),
	Run:  sha256,
}
View Source
var SyncCommand = &cobra.Command{
	Use:  SyncCommandName + " NAME",
	Args: cobra.ExactArgs(1),
	Run:  sync,
}

Functions

func Main

func Main()

Types

type Config

type Config struct {
	User, Password, Host, Database, LogLevel string
}

func (*Config) DBPath

func (c *Config) DBPath() string

Jump to

Keyboard shortcuts

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