Skip to content

Commit 0872f7e

Browse files
committed
Rename main.swift to MarkdownCommand.swift and add @main
1 parent dce7da3 commit 0872f7e

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
@@ -45,5 +46,3 @@ struct MarkdownCommand: ParsableCommand {
4546
return (stdinString, Document(parsing: stdinString, options: options))
4647
}
4748
}
48-
49-
MarkdownCommand.main()

0 commit comments

Comments
 (0)