Skip to content

Commit

Permalink
Merge branch 'master' into feat/yarn-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Aug 26, 2021
2 parents 160a690 + c465e42 commit 8a25393
Show file tree
Hide file tree
Showing 229 changed files with 29,871 additions and 24,863 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @QuiiBz @cstrnt @falky97 @mattschrage @rolandtshen
* @QuiiBz @nutlope @falky97 @mattschrage
90 changes: 39 additions & 51 deletions dev/adb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,26 +243,24 @@ const completionSpec: Fig.Spec = {
},
{
name: "reboot",
args: [
{
isOptional: true,
name: "type",
suggestions: [
{
name: "bootloader",
},
{
name: "recovery",
},
{
name: "sideload",
},
{
name: "sideload-auto-reboot",
},
],
},
],
args: {
isOptional: true,
name: "type",
suggestions: [
{
name: "bootloader",
},
{
name: "recovery",
},
{
name: "sideload",
},
{
name: "sideload-auto-reboot",
},
],
},
description:
"reboot the device; defaults to booting system image but supports bootloader and recovery too. sideload reboots into recovery and automatically starts sideload mode, sideload-auto-reboot is the same but reboots after sideloading.",
},
Expand Down Expand Up @@ -419,12 +417,10 @@ const completionSpec: Fig.Spec = {
{
name: "bugreport",
description: "write bugreport to given PATH [default=bugreport.zip];",
args: [
{
name: "PATH",
isOptional: true,
},
],
args: {
name: "PATH",
isOptional: true,
},
},
{
name: "pair",
Expand Down Expand Up @@ -456,34 +452,28 @@ const completionSpec: Fig.Spec = {
{
name: "emu",
description: "run emulator console command",
args: [
{
name: "COMMAND",
},
],
args: {
name: "COMMAND",
},
},
{
name: "install",
description: "push a single package to the device and install it",
args: [
{
name: "PACKAGE",
template: "filepaths",
},
],
args: {
name: "PACKAGE",
template: "filepaths",
},
options: installOptions,
},
{
name: "install-multiple",
description:
"push multiple APKs to the device for a single package and install them",
args: [
{
name: "PACKAGE",
template: "filepaths",
isVariadic: true,
},
],
args: {
name: "PACKAGE",
template: "filepaths",
isVariadic: true,
},
options: [
{
name: "-p",
Expand All @@ -496,13 +486,11 @@ const completionSpec: Fig.Spec = {
name: "install-multi-package",
description:
"push one or more packages to the device and install them atomically",
args: [
{
name: "PACKAGE",
template: "filepaths",
isVariadic: true,
},
],
args: {
name: "PACKAGE",
template: "filepaths",
isVariadic: true,
},
options: [
{
name: "-p",
Expand Down
60 changes: 60 additions & 0 deletions dev/afplay.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
const completionSpec: Fig.Spec = {
name: "afplay",
description: "Audio File Play",
args: {
template: "filepaths",
name: "play the song in the path",
},
options: [
{
name: ["-v", "--volume"],
description: `Set the volume for playback of the file
Apple does not define a value range for this, but it appears to accept
0=silent, 1=normal (default) and then up to 255=Very loud.
The scale is logarithmic and in addition to (not a replacement for) other volume control(s).`,
args: {
name: "0 (silent) - 1 (normal) - 255 (very loud)",
},
},
{
name: ["-h", "--help"],
description: "print help",
},
{
name: "--leaks",
description: "Run leaks analysis.",
},
{
name: ["-t", "--time"],
description: `Play for \`TIME\` seconds
>0 and < duration of \`audio_file\`.`,
args: {
name: "TIME",
description: `A value greater than 0 but lower than the audio file length`,
},
},
{
name: ["-r", "--rate"],
description: `Play at playback \`RATE\`.
practical limits are about 0.4 (slower) to 3.0 (faster).`,
args: {
name: "RATE",
description: `0.4 (slower) - 3.0 (faster)`,
},
},
{
name: ["-q", "--rQuality"],
description: `Set the quality used for rate-scaled playback (default is 0 - low quality, 1 - high quality).`,
args: {
name: "QUALITY",
description: "0 (low) -1 (high)",
},
},
{
name: ["-d", "--debug"],
description: `Debug print output.`,
},
],
};

export default completionSpec;
4 changes: 2 additions & 2 deletions dev/amplify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const completionSpec: Fig.Spec = {
description: "Pulls the current env from the cloud.",
options: [
{
name: ["--restore"],
name: "--restore",
description: "Overwrite your local changes.",
},
],
Expand All @@ -41,7 +41,7 @@ const completionSpec: Fig.Spec = {
},
options: [
{
name: ["--restore"],
name: "--restore",
description: "Overwrite your local changes.",
},
],
Expand Down
10 changes: 5 additions & 5 deletions dev/autojump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ const completionSpec: Fig.Spec = {
{
name: ["-a", "--add"],
description: "add path",
args: [{ name: "directory", template: ["folders"] }],
args: { name: "directory", template: ["folders"] },
},
{
name: ["-i", "--increase"],
description: "increase current directory weight",
args: [{ name: "weight", isOptional: true }],
args: { name: "weight", isOptional: true },
},
{
name: ["-d", "--decrease"],
description: "decrease current directory weight",
args: [{ name: "weight", isOptional: true }],
args: { name: "weight", isOptional: true },
},
{
name: ["--complete"],
name: "--complete",
description: "used for tab completion",
},
{
name: ["--purge"],
name: "--purge",
description: "remove non-existent paths from database",
},
{
Expand Down
2 changes: 1 addition & 1 deletion dev/aws/cloudformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ const completionSpec: Fig.Spec = {
"The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon SNS) topics that AWS CloudFormation associates with the stack. To remove all associated notification topics, specify an empty list.",
args: {
name: "list",
generators: [generators.listSNSTopics],
generators: generators.listSNSTopics,
isVariadic: true,
},
},
Expand Down
10 changes: 4 additions & 6 deletions dev/aws/configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ const completionSpec: Fig.Spec = {
name: "get",
description:
'Get a configuration value from the config file.\n\nThe ``aws configure get`` command can be used to print a configuration value in\nthe AWS config file. The ``get`` command supports two types of configuration\nvalues, *unqualified* and *qualified* config values.\n\n\nNote that ``aws configure get`` only looks at values in the AWS configuration\nfile. It does **not** resolve configuration variables specified anywhere else,\nincluding environment variables, command line arguments, etc.\n\n\nUnqualified Names\n-----------------\n\nEvery value in the AWS configuration file must be placed in a section (denoted\nby ``[section-name]`` in the config file). To retrieve a value from the\nconfig file, the section name and the config name must be known.\n\nAn unqualified configuration name refers to a name that is not scoped to a\nspecific section in the configuration file. Sections are specified by\nseparating parts with the ``"."`` character (``section.config-name``). An\nunqualified name will be scoped to the current profile. For example,\n``aws configure get aws_access_key_id`` will retrieve the ``aws_access_key_id``\nfrom the current profile, or the ``default`` profile if no profile is\nspecified. You can still provide a ``--profile`` argument to the ``aws\nconfigure get`` command. For example, ``aws configure get region --profile\ntesting`` will print the region value for the ``testing`` profile.\n\n\nQualified Names\n---------------\n\nA qualified name is a name that has at least one ``"."`` character in the name.\nThis name provides a way to specify the config section from which to retrieve\nthe config variable. When a qualified name is provided to ``aws configure\nget``, the currently specified profile is ignored. Section names that have\nthe format ``[profile profile-name]`` can be specified by using the\n``profile.profile-name.config-name`` syntax, and the default profile can be\nspecified using the ``default.config-name`` syntax.\n',
args: [
{
name: "varname",
description: "The name of the config value to retrieve.",
},
],
args: {
name: "varname",
description: "The name of the config value to retrieve.",
},
},
{
name: "set",
Expand Down
2 changes: 2 additions & 0 deletions dev/aws/ec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29080,6 +29080,7 @@ const completionSpec: Fig.Spec = {
name: "--secondary-private-ip-addresses",
description:
"[EC2-VPC] A secondary private IP address for the network interface or instance. You can specify this multiple times to assign multiple secondary IP addresses. If you want additional private IP addresses but do not need a specific address, use the --secondary-private-ip-address-count option.",
isRepeatable: true,
args: {
name: "string",
},
Expand Down Expand Up @@ -29853,6 +29854,7 @@ const completionSpec: Fig.Spec = {
name: "--private-ip-addresses",
description:
"The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.",
isRepeatable: true,
args: {
name: "list",
},
Expand Down
12 changes: 5 additions & 7 deletions dev/aws/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ const completionSpec: Fig.Spec = {
},
},
],
args: [
{
name: "command_id",
description:
"The ID of the CLI command to show. If this positional argument is omitted, it will show the last the CLI command ran.",
},
],
args: {
name: "command_id",
description:
"The ID of the CLI command to show. If this positional argument is omitted, it will show the last the CLI command ran.",
},
},
{
name: "list",
Expand Down
4 changes: 2 additions & 2 deletions dev/aws/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@ const completionSpec: Fig.Spec = {
"Specify a version to delete. You can't delete a version that's referenced by an alias.",
args: {
name: "string",
generators: [generators.listVersions],
generators: generators.listVersions,
},
},
{
Expand Down Expand Up @@ -3656,7 +3656,7 @@ const completionSpec: Fig.Spec = {
"A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of an SQS queue. Topic - The ARN of an SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.",
args: {
name: "structure",
generators: [generators.listDestinationConfigArns],
generators: generators.listDestinationConfigArns,
},
},
{
Expand Down
12 changes: 5 additions & 7 deletions dev/aws/opsworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4088,13 +4088,11 @@ const completionSpec: Fig.Spec = {
"Use the instance profile instead of creating an IAM\n user.",
},
],
args: [
{
name: "target",
description:
"Either the EC2 instance ID or the hostname of the\n instance or machine to be registered with OpsWorks.\n Cannot be used together with `--local`.",
},
],
args: {
name: "target",
description:
"Either the EC2 instance ID or the hostname of the\n instance or machine to be registered with OpsWorks.\n Cannot be used together with `--local`.",
},
},
{
name: "wait",
Expand Down
Loading

0 comments on commit 8a25393

Please sign in to comment.