mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
Update SwiftCLI to 3.1.0
This commit is contained in:
+2
-2
@@ -6,8 +6,8 @@
|
||||
"repositoryURL": "https://github.com/jakeheis/SwiftCLI",
|
||||
"state": {
|
||||
"branch": null,
|
||||
"revision": "36bb5dd52deed7264b6f41c1a2190d376cb9f17c",
|
||||
"version": "3.0.3"
|
||||
"revision": "8e5916bfcc7f8acee6fb2cb36d1ffefb02ac2460",
|
||||
"version": "3.1.0"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ let package = Package(
|
||||
targets: ["SWCompression"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/jakeheis/SwiftCLI", .upToNextMinor(from: "3.0.0"))
|
||||
.package(url: "https://github.com/jakeheis/SwiftCLI", from: "3.0.0")
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
|
||||
@@ -12,8 +12,8 @@ class SevenZipCommand: Command {
|
||||
let name = "7z"
|
||||
let shortDescription = "Extracts 7-Zip container"
|
||||
|
||||
let info = Flag("-i", "--info", usage: "Print list of entries in container and their attributes")
|
||||
let extract = Key<String>("-e", "--extract", usage: "Extract container into specified directory (it must be empty or not exist)")
|
||||
let info = Flag("-i", "--info", description: "Print list of entries in container and their attributes")
|
||||
let extract = Key<String>("-e", "--extract", description: "Extract container into specified directory (it must be empty or not exist)")
|
||||
|
||||
var optionGroups: [OptionGroup] {
|
||||
let actions = OptionGroup(options: [info, extract], restriction: .exactlyOne)
|
||||
|
||||
@@ -8,7 +8,7 @@ import SWCompression
|
||||
import SwiftCLI
|
||||
|
||||
struct GlobalOptions: GlobalOptionsSource {
|
||||
static let verbose = Flag("--verbose", usage: "Print the list of extracted files and directories.")
|
||||
static let verbose = Flag("--verbose", description: "Print the list of extracted files and directories.")
|
||||
static var options: [Option] {
|
||||
return [verbose]
|
||||
}
|
||||
|
||||
@@ -12,12 +12,12 @@ class TarCommand: Command {
|
||||
let name = "tar"
|
||||
let shortDescription = "Extracts TAR container"
|
||||
|
||||
let gz = Flag("-z", "--gz", usage: "Decompress with GZip first")
|
||||
let bz2 = Flag("-j", "--bz2", usage: "Decompress with BZip2 first")
|
||||
let xz = Flag("-x", "--xz", usage: "Decompress with XZ first")
|
||||
let gz = Flag("-z", "--gz", description: "Decompress with GZip first")
|
||||
let bz2 = Flag("-j", "--bz2", description: "Decompress with BZip2 first")
|
||||
let xz = Flag("-x", "--xz", description: "Decompress with XZ first")
|
||||
|
||||
let info = Flag("-i", "--info", usage: "Print list of entries in container and their attributes")
|
||||
let extract = Key<String>("-e", "--extract", usage: "Extract container into specified directory (it must be empty or not exist)")
|
||||
let info = Flag("-i", "--info", description: "Print list of entries in container and their attributes")
|
||||
let extract = Key<String>("-e", "--extract", description: "Extract container into specified directory (it must be empty or not exist)")
|
||||
|
||||
var optionGroups: [OptionGroup] {
|
||||
let compressions = OptionGroup(options: [gz, bz2, xz], restriction: .atMostOne)
|
||||
|
||||
@@ -12,8 +12,8 @@ class ZipCommand: Command {
|
||||
let name = "zip"
|
||||
let shortDescription = "Extracts ZIP container"
|
||||
|
||||
let info = Flag("-i", "--info", usage: "Print list of entries in container and their attributes")
|
||||
let extract = Key<String>("-e", "--extract", usage: "Extract container into specified directory (it must be empty or not exist)")
|
||||
let info = Flag("-i", "--info", description: "Print list of entries in container and their attributes")
|
||||
let extract = Key<String>("-e", "--extract", description: "Extract container into specified directory (it must be empty or not exist)")
|
||||
|
||||
var optionGroups: [OptionGroup] {
|
||||
let actions = OptionGroup(options: [info, extract], restriction: .exactlyOne)
|
||||
|
||||
Reference in New Issue
Block a user