Skip to content

Commit

Permalink
Merge pull request #126 from FelixHerrmann/improvement/path-completions
Browse files Browse the repository at this point in the history
[Improvement] Path Completions
  • Loading branch information
FelixHerrmann authored Oct 6, 2024
2 parents efcc957 + 186a53f commit b249f50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ import SwiftPackageListCore

extension SwiftPackageList {
struct InputOptions: ParsableArguments {
@Argument(help: "The path to your *.xcodeproj, *.xcworkspace, Package.swift, Project.swift or Dependencies.swift file.")
@Argument(
help: "The path to your *.xcodeproj, *.xcworkspace, Package.swift, Project.swift or Dependencies.swift file.",
completion: .file(extensions: ["xcodeproj", "xcworkspace", "swift"])
)
var projectPath: String

@Option(help: "A custom path to your DerivedData-folder.")
@Option(help: "A custom path to your DerivedData-folder.", completion: .directory)
var customDerivedDataPath: String?

@Option(help: "A custom path to the SourcePackages-folder.")
@Option(help: "A custom path to the SourcePackages-folder.", completion: .directory)
var customSourcePackagesPath: String?
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ extension SwiftPackageList {
@Option(help: "The type of output for the package-list.")
var outputType: OutputType = .stdout

@Option(help: "The path where the package-list file will be stored. (Not required for stdout output-type)")
@Option(
help: "The path where the package-list file will be stored. (Not required for stdout output-type)",
completion: .directory
)
var outputPath: String?

@Option(help: "A custom filename to be used instead of the default ones.")
Expand Down

0 comments on commit b249f50

Please sign in to comment.