Skip to content

Commit

Permalink
feat(markdownfmt): mark as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
odsod committed Apr 8, 2024
1 parent e186e4a commit 105961d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/sgmarkdownfmt/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ const version = "75134924a9fd3335f76a9709314c5f5cef4d6ddc"
//nolint:gochecknoglobals
var commandPath string

// Command returns an [exec.Cmd] pointing to the markdownfmt binary.
//
// Deprecated: Use sgmdformat.Command instead.
func Command(ctx context.Context, args ...string) *exec.Cmd {
sg.Deps(ctx, PrepareCommand)
return sg.Command(ctx, commandPath, args...)
}

// PrepareCommand downloads the markdownfmt binary and adds it to the PATH.
//
// Deprecated: Use sgmdformat.PrepareCommand instead.
func PrepareCommand(ctx context.Context) error {
binary, err := sgtool.GoInstall(ctx, "github.com/shurcooL/markdownfmt", version)
if err != nil {
Expand Down

0 comments on commit 105961d

Please sign in to comment.