Skip to content

Commit

Permalink
use 0 and 1 instead of true/false
Browse files Browse the repository at this point in the history
  • Loading branch information
nedley committed Dec 13, 2019
1 parent c48e2a1 commit bbc0461
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cook/Stuff/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ enum Utils {
}

static func dictionaryForFailedResult(with error: Error) -> [String: String] {
return ["success": "false", "error": "\(error)"]
return ["success": "0", "error": "\(error)"]
}

static func dictionaryForSuccess(with values: [String: String]) -> [String: String] {
var dict: [String: String] = ["success": "true"]
var dict: [String: String] = ["success": "1"]
for (key, value) in values {
dict[key] = value
}
Expand Down Expand Up @@ -108,8 +108,8 @@ enum Utils {
print(" --bundle-id Optional, to specify an app's identifier (defaults to all apps)")
print(" --output-folder Directory where to save the profiles\n")
print("Possible JSON Responses (--json flag):\n")
print(" 'success': 'true' or 'false'")
print(" 'error': Error description (if success is false)\n")
print(" 'success': '0' or '1'")
print(" 'error': Error description (if success is 0)\n")
print(" create_certificate recipe")
print(" 'pem_cert': Plain text PEM cert")
print(" 'base64_p12_cert': Base 64 encoded P12 cert")
Expand Down

0 comments on commit bbc0461

Please sign in to comment.