Skip to content

Commit

Permalink
Merge pull request #40 from ios-osushi/fix-summarizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ry-itto authored Jan 28, 2025
2 parents 529a24e + 4b7ec95 commit 74a4c47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Sources/ReleaseSummarizer/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import Logging

@main
struct App: AsyncParsableCommand {
static let dateFormatter: DateFormatter = {
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "yyyy/MM/dd"
return dateFormatter
}()

static var configuration: CommandConfiguration {
.init(
Expand All @@ -22,14 +27,14 @@ struct App: AsyncParsableCommand {
@Option(
name: .long,
help: "Generate article target date range from. yyyy/MM/dd date format string",
transform: ISO8601DateFormatter().date(from:)
transform: dateFormatter.date(from:)
)
var from: Date?

@Option(
name: .long,
help: "Generate article target date range to. yyyy/MM/dd date format string. default: today",
transform: ISO8601DateFormatter().date(from:)
transform: dateFormatter.date(from:)
)
var to: Date?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ iOS アプリ開発でよく使われている OSS のリリース情報です
let content = """
#### \(release.version) - \(release.owner)/\(release.repository)
[\(release.url)](\(release.url)
[\(release.url)](\(release.url))
\(generatedContent)
Expand Down

0 comments on commit 74a4c47

Please sign in to comment.