Skip to content

Commit

Permalink
Update toc command for windows compat
Browse files Browse the repository at this point in the history
and update/remove all build constraint comments
  • Loading branch information
meatballhat committed Jan 22, 2023
1 parent d391605 commit 9b65c47
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 22 deletions.
5 changes: 0 additions & 5 deletions altsrc/toml_command_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// Disabling building of toml support in cases where golang is 1.0 or 1.1
// as the encoding library is not implemented or supported.

// +build go1.2

package altsrc

import (
Expand Down
5 changes: 0 additions & 5 deletions altsrc/toml_file_loader.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// Disabling building of toml support in cases where golang is 1.0 or 1.1
// as the encoding library is not implemented or supported.

// +build go1.2

package altsrc

import (
Expand Down
5 changes: 0 additions & 5 deletions altsrc/yaml_command_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// Disabling building of yaml support in cases where golang is 1.0 or 1.1
// as the encoding library is not implemented or supported.

// +build go1.2

package altsrc

import (
Expand Down
5 changes: 0 additions & 5 deletions altsrc/yaml_file_loader.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// Disabling building of yaml support in cases where golang is 1.0 or 1.1
// as the encoding library is not implemented or supported.

// +build go1.2

package altsrc

import (
Expand Down
5 changes: 3 additions & 2 deletions build.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build ignore
//go:build ignore
// +build ignore

package main

Expand Down Expand Up @@ -168,7 +169,7 @@ func TocActionFunc(c *cli.Context) error {
filename = "README.md"
}

err := runCmd("node_modules/.bin/markdown-toc", "-i", filename)
err := runCmd("node", "node_modules/.bin/markdown-toc", "-i", filename)
if err != nil {
return err
}
Expand Down
1 change: 1 addition & 0 deletions helpers_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux netbsd openbsd solaris

package cli
Expand Down

0 comments on commit 9b65c47

Please sign in to comment.