Skip to content

Commit

Permalink
Rearrange options in cache command
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftyfinch committed Apr 27, 2024
1 parent df1bce9 commit 0fb11e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Docs/commands-help/shortcuts/cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

Options:
╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ --warmup * Warmup cache with this endpoint. │
│ --headers [] * Extra HTTP header fields for warmup ("s3-key: my-secret-key"). │
│ -s, --sdk * Build SDK: sim or ios. │
│ -a, --arch * Build architecture: auto, x86_64 or arm64. │
│ -c, --config * Build configuration. (Debug) │
Expand All @@ -22,6 +20,8 @@
│ -e, --except [] * Target names to exclude. │
│ -x, --except-as-regex [] * Regular expression patterns to exclude targets. │
│ --result-bundle-path * Path to xcresult bundle. │
│ --warmup * Warmup cache with this endpoint. │
│ --headers [] * Extra HTTP header fields for warmup ("s3-key: my-secret-key"). │
│ --max-connections * The maximum number of simultaneous connections. (10) │
│ --archive-type * Binary archive file type to use: zip or 7z. │
│ -o, --output * Output mode: fold, multiline, silent, raw. │
Expand Down
18 changes: 9 additions & 9 deletions Sources/Rugby/Commands/Mixed/Shortcuts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,24 @@ extension Shortcuts {
@Flag(name: .long, help: "Prebuild targets ignoring sources.")
var prebuild = false

@Option(help: "Warmup cache with this endpoint.")
var warmup: String?

@Option(help: "Extra HTTP header fields for warmup (\"s3-key: my-secret-key\").")
var headers: [String] = []

@OptionGroup
var buildOptions: BuildOptions

@Flag(name: .long, help: "Ignore shared cache.")
var ignoreCache = false

@Option(name: .long, help: "Path to xcresult bundle.")
var resultBundlePath: String?

@Flag(name: .long, help: "Ignore shared cache.")
var ignoreCache = false

@Flag(name: .long, help: "Delete target groups from project.")
var deleteSources = false

@Option(help: "Warmup cache with this endpoint.")
var warmup: String?

@Option(help: "Extra HTTP header fields for warmup (\"s3-key: my-secret-key\").")
var headers: [String] = []

@Option(help: "The maximum number of simultaneous connections.")
var maxConnections = settings.warmupMaximumConnectionsPerHost

Expand Down

0 comments on commit 0fb11e8

Please sign in to comment.