zaphyra's git: airpodsctl

Control and monitor your AirPods

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
package main

const usageStr = `airpodsctl v%s (%s)
Control your Apple AirPods from your non-apple computer

USAGE
  $ airpodsctl %s [OPTIONS]
%s
GENERAL OPTIONS
`

const commandHelpStr = `
COMMANDS
  Available Commands:
    listDevices                      List all connected devices
    dumpDeviceState                  Output the state of a device
    toggleAncMode                    Set active ANC-Mode (toggles between all available ANC-Modes if no mode given)
    toggleFeature                    Enable or disable a feature
    monitor                          Continuously monitor a device and output its state

  Use "airpodsctl <COMMAND> --help" for more information about a command.
`

const featuresHelpStr = `Available features:
  OneBudAnc                 Allow ANC when only one bud is used
  VolumeSwipe               Control volume with swipes on buds
  AdaptiveVolume            Adaptive volume automatically adjusts the media volume based your environment
  ConversationalAwareness   Conversational awareness activates transparency mode when you start to speak
  AllowANCOff               Allow the ANC-mode 'off', otherwise only 'on', 'transparency' and 'adaptive' are allowed`