Skip to content

Commit decbb61

Browse files
committed
Rename main.swift to MarkdownCommand.swift and add @main
1 parent 6b9aade commit decbb61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/markdown-tool/main.swift renamed to Sources/markdown-tool/MarkdownCommand.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import ArgumentParser
1212
import Foundation
1313
import Markdown
1414

15+
@main
1516
struct MarkdownCommand: ParsableCommand {
1617
enum Error: LocalizedError {
1718
case couldntDecodeInputAsUTF8
@@ -50,5 +51,3 @@ struct MarkdownCommand: ParsableCommand {
5051
return (stdinString, Document(parsing: stdinString, options: options))
5152
}
5253
}
53-
54-
MarkdownCommand.main()

0 commit comments

Comments
 (0)