Skip to content

Latest commit

 

History

History
154 lines (118 loc) · 5.01 KB

README.md

File metadata and controls

154 lines (118 loc) · 5.01 KB

xc

$ xc

The best command to run Xcode app what you want.

distinction

  • Short! This command is short as cd and ls that use frequently!
  • Fast! This command is blazingly fast to find and sort Xcode apps on the machine!
  • Easy! This command is too easy to type and memorise so can even run Xcode app unconsciously!

installing

You can install xc using Mint 🌱.

mint install minacle/xc

usage

xc <subcommand>
xc help [<subcommand>]

list

List every or specified version of Xcode app(s) on the machine.

xc list [-a|--all] [-s|--specify <specifier>] [<paths> ...]
xc list [-b|--beta] [-s|--specify <specifier>] [<paths> ...]
xc list [-r|--release] [-s|--specify <specifier>] [<paths> ...]

options

  • -a|--all
    Search both beta and release version.
  • -b|--beta
    Search only beta version.
  • -r|--release
    Search only release version. (default)
  • -s <specifier>|--specify <specifier>
    Specify the build or version of Xcode to run.
    To specify build 11E801a (for Xcode 11.7 GM), send 11E801a.
    To specify version 12.0.1 (for Xcode 12A7300 GM), send 12.0.1.
    To specify most recent version starts with 11, send ~>11.0.
    To specify most recent version starts with 8.3, send ~>8.3.0.
  • -h|--help
    Show help information.

open

Open paths using most recent or specified version of Xcode app on the machine.

Default behaviour.

xc [open] [-a|--all] [-s|--specify <specifier>] [-F|--fresh] [-H|--hide] [<paths> ...]
xc [open] [-b|--beta] [-s|--specify <specifier>] [-F|--fresh] [-H|--hide] [<paths> ...]
xc [open] [-r|--release] [-s|--specify <specifier>] [-F|--fresh] [-H|--hide] [<paths> ...]

arguments

  • <paths>
    Path list to be opened.
    Swift packages are can be selected by package root directory.
    Open as workspace if .xcodeproj and/or .xcworkspace bundle selected.
    Otherwise selected file will be opened as independent file.

options

  • -a|--all
    Search both beta and release version.
  • -b|--beta
    Search only beta version.
  • -r|--release
    Search only release version. (default)
  • -s <specifier>|--specify <specifier>
    Specify the build or version of Xcode to run.
    To specify build 11E801a (for Xcode 11.7 GM), send 11E801a.
    To specify version 12.0.1 (for Xcode 12A7300 GM), send 12.0.1.
    To specify most recent version starts with 11, send ~>11.0.
    To specify most recent version starts with 8.3, send ~>8.3.0.
  • -h|--help
    Show help information.

print

Print information of specified Xcode app on the machine.

xc print [-a|--all] [-s|--specify <specifier>] [-f|--format <format>]
xc print [-b|--beta] [-s|--specify <specifier>] [-f|--format <format>]
xc print [-r|--release] [-s|--specify <specifier>] [-f|--format <format>]

options

  • -a|--all
    Search both beta and release version.
  • -b|--beta
    Search only beta version.
  • -r|--release
    Search only release version. (default)
  • -s <specifier>|--specify <specifier>
    Specify the build or version of Xcode to run.
    To specify build 11E801a (for Xcode 11.7 GM), send 11E801a.
    To specify version 12.0.1 (for Xcode 12A7300 GM), send 12.0.1.
    To specify most recent version starts with 11, send ~>11.0.
    To specify most recent version starts with 8.3, send ~>8.3.0.
  • -f <format>|--format <format>
    Set the output format.
    %b stands for build.
    %l stands for license type (Release, Beta or Unknown).
    %n stands for name.
    %p stands for path.
    %v stands for version.
    %% stands for percent sign (%) itself.
    Escapings are supported: see Special Characters in String Literals section on Swift Language Guide.
  • -h|--help
    Show help information.

run

Run developer tool from the specified Xcode app.

xc run [-a|--all] [-s|--specify <specifier>] <command> [<arguments> ...]
xc run [-b|--beta] [-s|--specify <specifier>] <command> [<arguments> ...]
xc run [-r|--release] [-s|--specify <specifier>] <command> [<arguments> ...]

arguments

  • <command>
    The command or App to execute.
  • <arguments> Arguments to send to the command or App.

options

  • -a|--all
    Search both beta and release version.
  • -b|--beta
    Search only beta version.
  • -r|--release
    Search only release version. (default)
  • -s <specifier>|--specify <specifier>
    Specify the build or version of Xcode to run.
    To specify build 11E801a (for Xcode 11.7 GM), send 11E801a.
    To specify version 12.0.1 (for Xcode 12A7300 GM), send 12.0.1.
    To specify most recent version starts with 11, send ~>11.0.
    To specify most recent version starts with 8.3, send ~>8.3.0.
  • -h|--help
    Show help information.

copyright

No.