cmd

package
v0.0.0-...-8e4a6d4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Copyright © 2021 Arghya Sarkar <arghyasarkar.nolan@gmail.com>

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExists

func CheckFileExists(filePath string) bool

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 GetJSON

func GetJSON() (string, string, string, []string)

func GetUserConfig

func GetUserConfig() (string, string)

func InitConfig

func InitConfig()

Types

type Build

type Build struct {
	Target       string   `json:"target"`             // wallpaper search terms for unsplash
	Destination  string   `json:"destination"`        // wallpaper resolution, defaults to 1600x900
	Action       string   `json:"action"`             // whether change wallpaper after a duration
	Instructions []string `json:"build_instructions"` // if wallpaper has to be changed, then after how many minutes
}

type ConfigData

type ConfigData struct {
	UserName string `json:"UserName"`
	Email    string `json:"Email"`
}

type Configuration

type Configuration struct {
	UserName, Email string
}

type VSlice

type VSlice []string

func (VSlice) String

func (s VSlice) String() string

Jump to

Keyboard shortcuts

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