Update SwiftCLI to 3.1.0

This commit is contained in:
Timofey Solomko
2017-10-22 16:29:32 +03:00
parent 2fabe65490
commit 29e27bc31d
6 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -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
View File
@@ -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(
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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]
}
+5 -5
View File
@@ -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)
+2 -2
View File
@@ -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)