Skip to content

Commit 70fc944

Browse files
Add missing docs/aerospace-master-stack.adoc and regenerate files
The CI failed because cmdHelpGenerated.swift is auto-generated from docs/aerospace-*.adoc files. The master-stack help was manually added in the wrong position and the subcommand description was missing.
1 parent 57014ef commit 70fc944

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

Sources/Cli/subcommandDescriptionsGenerated.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ let subcommandDescriptions = [
2323
[" list-workspaces", "Print workspaces that satisfy conditions"],
2424
[" macos-native-fullscreen", "Toggle macOS fullscreen for the focused window"],
2525
[" macos-native-minimize", "Minimize focused window"],
26+
[" master-stack", "Arrange windows in a master-stack layout"],
2627
[" mode", "Activate the specified binding mode"],
2728
[" move-mouse", "Move mouse to the requested position"],
2829
[" move-node-to-monitor", "Move window to monitor targeted by relative direction, by order, or by pattern"],

Sources/Common/cmdHelpGenerated.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ let list_workspaces_help_generated = """
8585
OR: list-workspaces [-h|--help] --all [--format <output-format>] [--count] [--json]
8686
OR: list-workspaces [-h|--help] --focused [--format <output-format>] [--count] [--json]
8787
"""
88-
let master_stack_help_generated = """
89-
USAGE: master-stack [-h|--help] [--workspace <workspace>]
90-
"""
9188
let macos_native_fullscreen_help_generated = """
9289
USAGE: macos-native-fullscreen [-h|--help] [--window-id <window-id>]
9390
OR: macos-native-fullscreen [-h|--help] [--window-id <window-id>] [--fail-if-noop] on
@@ -96,6 +93,9 @@ let macos_native_fullscreen_help_generated = """
9693
let macos_native_minimize_help_generated = """
9794
USAGE: macos-native-minimize [-h|--help] [--window-id <window-id>]
9895
"""
96+
let master_stack_help_generated = """
97+
USAGE: master-stack [-h|--help] [--workspace <workspace>]
98+
"""
9999
let mode_help_generated = """
100100
USAGE: mode [-h|--help] <binding-mode>
101101
"""

docs/aerospace-master-stack.adoc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
= aerospace-master-stack(1)
2+
include::util/man-attributes.adoc[]
3+
:manname: aerospace-master-stack
4+
// tag::purpose[]
5+
:manpurpose: Arrange windows in a master-stack layout
6+
// end::purpose[]
7+
8+
// =========================================================== Synopsis
9+
== Synopsis
10+
[verse]
11+
// tag::synopsis[]
12+
aerospace master-stack [-h|--help] [--workspace <workspace>]
13+
14+
// end::synopsis[]
15+
16+
// =========================================================== Description
17+
== Description
18+
19+
// tag::body[]
20+
{manpurpose}
21+
22+
The focused window becomes the master window, taking 70% of the screen width.
23+
Remaining windows are stacked in a spiral layout on the right side.
24+
25+
Use `--cycle` to rotate windows through the master position.
26+
27+
// =========================================================== Options
28+
include::./util/conditional-options-header.adoc[]
29+
30+
-h, --help:: Print help
31+
32+
--workspace <workspace>::
33+
include::./util/workspace-flag-desc.adoc[]
34+
35+
--cycle:: Cycle the next window (by window ID order) into the master position
36+
37+
// end::body[]
38+
39+
// =========================================================== Footer
40+
include::util/man-footer.adoc[]

0 commit comments

Comments
 (0)