Skip to content

Commit

Permalink
fix logs to include .md and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
devils2ndself committed Sep 22, 2022
1 parent e857384 commit d0ed6e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ssgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
flag "github.com/spf13/pflag"
)

const version string = "0.1.1"
const version string = "0.2"

const defaultOutput string= "dist"

Expand Down
6 changes: 3 additions & 3 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
)

const (
InputHelpMessage string = "Path to a .txt file OR a folder containing .txt files to be turned into HTML"
InputHelpMessage string = "Path to a .txt / .md file OR a folder containing .txt / .md files to be turned into HTML"
OutputHelpMessage string = "Optional. Additionaly changes the output path of generated HTML"
HelpHelpMessage string = "Display detailed help message"
VersionHelpMessage string = "Display installed version of SSGo"
Expand Down Expand Up @@ -98,7 +98,7 @@ func ProcessInput(input string, output string) {

var files []File

fmt.Println("Looking for .txt files in the directory...")
fmt.Println("Looking for .txt / .md files in the directory...")

// Walks through all elements in the directory
filepath.Walk(input, func(path string, info os.FileInfo, err error) error {
Expand Down Expand Up @@ -132,7 +132,7 @@ func ProcessInput(input string, output string) {
GenerateHTML(files[i].path, output, files[i].name)
}
} else {
log.Fatal("No .txt files in the directory!")
log.Fatal("No .txt / .md files in the directory!")
}

} else {
Expand Down

0 comments on commit d0ed6e5

Please sign in to comment.