feat: Better checks on if semvar has changes prior to writing to a file.
All checks were successful
CI / Ubuntu (push) Successful in 2m51s

This commit is contained in:
2024-12-26 13:06:31 -05:00
parent a0f8611a76
commit 2650bdc670
7 changed files with 37 additions and 18 deletions

View File

@@ -5,14 +5,18 @@ import Dependencies
import Foundation
import ShellClient
struct GenerateCommand: AsyncParsableCommand {
struct GenerateCommand: CommandRepresentable {
static let commandName = "generate"
static let configuration: CommandConfiguration = .init(
commandName: Self.commandName,
abstract: Abstract.default("Generates a version file in your project.").render(),
abstract: Abstract.default("Generates a version file in your project."),
usage: Usage.default(commandName: Self.commandName),
discussion: Discussion {
discussion: Discussion.default(
examples: [
makeExample(label: "Basic usage.", example: "")
]
) {
"This command can be interacted with directly, outside of the plugin usage context."
}
)

View File

@@ -1,3 +1,7 @@
/*
This file contains helpers for generating the documentation for the commands.
*/
import ArgumentParser
import CliDoc
import Rainbow