-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's gotten pretty messy. Time to refactor
new file: cmd/rfd/config/initialise.go new file: cmd/rfd/global/parameters.go modified: cmd/rfd/index.go deleted: cmd/rfd/init.go modified: cmd/rfd/new.go modified: cmd/rfd/rfd.go renamed: cmd/rfd/util.go -> cmd/rfd/util/utilities.go modified: go.mod
- Loading branch information
Showing
8 changed files
with
647 additions
and
653 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package global | ||
|
||
type Configuration struct { | ||
RootDirectory string `yaml:"root-directory"` | ||
TemplatesDirectory string `yaml:"templates-directory"` | ||
//RFDRelativeDirectory string `yaml:"rfd-relative-directory"` | ||
PrivateKeyFileName string `yaml:"private-key-file-name"` | ||
InitialAuthor string `yaml:"initial-author"` | ||
Organisation string `yaml:"organisation"` | ||
InstigationDate string `yaml:"instigation-date"` | ||
} | ||
|
||
type States struct { | ||
RFDStates []map[string]map[string]string `yaml:"rfd-states"` | ||
} | ||
|
||
type RFDMetadata struct { | ||
RFDID string | ||
Title string | ||
Authors string | ||
State string | ||
Link string | ||
RFDStates []map[string]map[string]string | ||
} | ||
|
||
const HOME string = "HOME" | ||
const HOMEDRIVE string = "HOMEDRIVE" | ||
const HOMEPATH string = "HOMEPATH" | ||
|
||
var SSHDIR string | ||
var REPO_TEMPLATE_FILE_LOCATION string | ||
var TEMPLATE_FILE_LOCATION string | ||
var PATH_SEPARATOR string | ||
|
||
var APP_CONFIG *Configuration | ||
var APP_STATES *States |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.