dotgo

package module
v0.0.0-...-e067a2f Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 11 Imported by: 0

README

dotgo

A rewrite of dotbot, but in Go so I can store the binary in my dotfiles and not have to worry about the local Python installation.

what's complete?

Currently implemented the logging package messenger. Still need to do plugins as the main part, then the config follows from that.

todo

  • messenger done
  • config done (maybe?)
  • plugins need heavy working
  • cli needs some refactor, but that requires metavar change to the package im using
  • Actually add the custom parsing and all that, potentially allow config to have validation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(paths ...string) ([]plugins.Plugin, error)

Load returns the slice of plugins, along with an error if one occurred. Files that will be read in must be a part of the proper file structure for a plugin. That will be described at some point.

func ReadConfig

func ReadConfig(path string) (map[string]interface{}, error)

ReadConfig returns the read config data from the file.

Types

type Config

type Config struct {
	Data []map[string]interface{}
}

TODO: Custom Marshalling according to Plugin Type.

Directories

Path Synopsis
Package plugins provides the default plugins available to be used by the dotgo executable.
Package plugins provides the default plugins available to be used by the dotgo executable.
test
foobar
Package foobar is an example of a plugin.
Package foobar is an example of a plugin.

Jump to

Keyboard shortcuts

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