Skip to content

Commit

Permalink
Remove native and make noop the default
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenia committed Nov 1, 2020
1 parent 068cfa3 commit a22e90f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
15 changes: 4 additions & 11 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ import (

"github.com/mbStavola/slydes/pkg/lang"
"github.com/mbStavola/slydes/render/html"
"github.com/mbStavola/slydes/render/native"
)

func main() {
filename := flag.String("file", "", "slide to open")
output := flag.String("out", "html", "method of display (html, noop, native)")
output := flag.String("out", "noop", "method of display (noop, html)")
debug := flag.Bool("debug", false, "print debug info")

flag.Parse()
Expand All @@ -25,7 +24,7 @@ func main() {
fmt.Print("Only .sly files are supported")
return
} else if *output != "native" && *output != "html" && *output != "noop" {
fmt.Print("Output must be either html, native, or noop")
fmt.Print("Output must be either noop or html")
return
}

Expand All @@ -48,16 +47,10 @@ func main() {
}

switch *output {
case "html":
if err := html.Render(show); err != nil {
fmt.Print(err)
}

break
case "noop":
break
case "native":
if err := native.Render(show); err != nil {
case "html":
if err := html.Render(show); err != nil {
fmt.Print(err)
}

Expand Down
9 changes: 0 additions & 9 deletions render/native/render.go

This file was deleted.

0 comments on commit a22e90f

Please sign in to comment.