mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
Remove tautology
This commit is contained in:
parent
ab18e4c28d
commit
97154a6787
1 changed files with 2 additions and 2 deletions
|
@ -17,12 +17,12 @@ import (
|
||||||
"maunium.net/go/gomuks/ui"
|
"maunium.net/go/gomuks/ui"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HeadlessConfig struct {
|
type Config struct {
|
||||||
OutputDir, MxPassword, KeyPath, KeyPassword, RecoveryPhrase string
|
OutputDir, MxPassword, KeyPath, KeyPassword, RecoveryPhrase string
|
||||||
MxID id.UserID
|
MxID id.UserID
|
||||||
}
|
}
|
||||||
|
|
||||||
func HeadlessInit(conf HeadlessConfig, updates chan fmt.Stringer) error {
|
func Init(conf Config, updates chan fmt.Stringer) error {
|
||||||
// setup package dir
|
// setup package dir
|
||||||
os.Setenv("GOMUKS_ROOT", conf.OutputDir)
|
os.Setenv("GOMUKS_ROOT", conf.OutputDir)
|
||||||
updates <- ExportDirSetMsg{dir: conf.OutputDir}
|
updates <- ExportDirSetMsg{dir: conf.OutputDir}
|
||||||
|
|
Loading…
Add table
Reference in a new issue