Skip to content

Commit

Permalink
Re-added ability to specify config path in interactive prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
varphi-online committed Sep 17, 2024
1 parent 399d6a9 commit d0b647b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mdrss.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ func promptUsr(prompt string, attrubute *string, fallback string) {
}

func initCommand() error {
configPath := mdrss.DefaultConfigPath()
var configPath string
var newConfig mdrss.Config
promptUsr("Feed title", &newConfig.Title, "Untitled")
promptUsr("Feed link", &newConfig.Link, "https://localhost:5500/index.xml")
promptUsr("Feed description", &newConfig.Description, "An RSS feed")
promptUsr("Feed author", &newConfig.Channel.Author, "anonymous")
promptUsr("Config path", &configPath, mdrss.DefaultConfigPath())
defaultDir, _ := os.Getwd()
promptUsr("Input folder path", &newConfig.InputFolder, defaultDir+"/test/")
promptUsr("Output file path", &newConfig.OutputFile, defaultDir+"/index.xml")
Expand Down

0 comments on commit d0b647b

Please sign in to comment.