Skip to content

Commit 9944b99

Browse files
authored
Merge branch 'main' into wyatt-stanke
2 parents 12120da + 64adbf1 commit 9944b99

53 files changed

Lines changed: 990 additions & 31 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

FORMAT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,59 +5,59 @@ The workflow file format is a [yaml](https://yaml.org/) file and must have eithe
55

66
_Compatibility Note_: Warp is still in Beta and this format is subject to change.
77

8-
### `name`
8+
#### `name`
99
---
1010
The name of the Workflow. Required.
1111

12-
### `command`
12+
#### `command`
1313
----
1414
The command that is executed when the Workflow is selected. Required.
1515

16-
### `tags`
16+
#### `tags`
1717
----
1818
An array of tags that are useful to categorize the Workflow. Optional.
1919

2020
```yaml
2121
tags: ["git", "GitHub"]
2222
```
2323
24-
### `description`
24+
#### `description`
2525
----
2626
The description of the Workflow and what it does. Optional.
2727

28-
### `source_url`
28+
#### `source_url`
2929
----
3030
The URL from where the Workflow was originally generated from. This is surfaced in [commands.dev](https://www.commands.dev/) for attribution purposes. Optional.
3131

3232

33-
### `author`
33+
#### `author`
3434
----
3535
The original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author` would be the `author` of the StackOverflow post. This is surfaced in [commands.dev](https://www.commands.dev/) for attribution purposes. Optional.
3636

37-
### `author_url`
37+
#### `author_url`
3838
----
3939
The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page. This is surfaced in [commands.dev](https://www.commands.dev/) for attribution purposes. Optional.
4040

41-
### `shells`
41+
#### `shells`
4242
----
4343
The list of shells where this Workflow is valid. If not specified, the Workflow is assumed to be valid in all shells. This must be one of `zsh`, `bash`, or `fish`.
4444

4545

46-
## `arguments`
46+
#### `arguments`
4747
----
4848
A Workflow can have parameterized arguments to specify pieces of the Workflow that need to be filled in by the user.
4949

5050
You can specify which part of the Workflow command maps to an argument by surrounding it with two curly braces (`{{<argument>}}`).
5151

5252
For example the workflow command:
5353
```bash
54-
for {{variable} in {{sequence}}}; do
54+
for {{variable}} in {{sequence}}; do
5555
{{command}}
5656
done
5757
```
5858
Includes 3 arguments: `variable`, `sequence`, and `command`.
5959

60-
## `arguments.name`
60+
#### `arguments.name`
6161
-----
6262
The name of the argument. The argument name is used within the command to specify the ranges of the argument. Required.
6363

@@ -69,10 +69,10 @@ arguments:
6969
description: The value to echo
7070
```
7171

72-
## `arguments.description`
72+
#### `arguments.description`
7373
-----
7474
The description of the argument. This is surfaced in both commands.dev and Warp to help users fill in Workflow arguments. Optional
7575

76-
## `arguments.default_value`
76+
#### `arguments.default_value`
7777
-----
7878
The default value for the argument. If specified, the `default_value` replaces the argument name within the command. Optional

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ To test a workflow within Warp before submitting, you can use it as a local work
6565
To do this:
6666
1) Copy the workflow to your local `~/.warp/workflows` directory:
6767
```bash
68-
mkdir -p ~/.warp/workflows && cp {{workflow}}.yaml; ~/.warp/workflows/
68+
mkdir -p ~/.warp/workflows && cp {{workflow}}.yaml ~/.warp/workflows/
6969
```
7070
2) Open Warp and open workflows by pressing `ctrl-shift-r` or using the command palette.
7171
3) Click on "My Workflows" on the left to filter for local workflows.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Root your emulator
3+
command: adb root
4+
tags:
5+
- android
6+
- adb
7+
description: Roots your Android emulator
8+
author: Odin Asbjørnsen
9+
author_url: https://github.com/oas004
10+
shells: []
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Push a deeplink to your Android device
3+
command: adb shell am start
4+
-W -a android.intent.action.VIEW
5+
-d "{{deeplink}}" {{your_app_package_name}}
6+
tags:
7+
- android
8+
- adb
9+
description: Uses adb to push a deeplink onto an Android device.
10+
arguments:
11+
- name: your_app_package_name
12+
description: The package name of the app that you want to receive the deeplink.
13+
default_value: com.my.app.package
14+
- name: deeplink
15+
description: The deeplink you want to send (eg. `app://open.my.app`)
16+
author: Odin Asbjørnsen
17+
author_url: https://github.com/oas004
18+
shells: []
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Send a Firebase push notification to a local Android emulator
3+
command: adb shell am broadcast \
4+
-n {{your_app_package_name}}/com.google.firebase.iid.FirebaseInstanceIdReceiver \
5+
-a "com.google.android.c2dm.intent.RECEIVE" \
6+
--es "title" "{{notification_title}}" \
7+
--es "body" "{{notification_body}}" \
8+
--es "deeplink" "{{deeplink}}"
9+
tags:
10+
- android
11+
- adb
12+
- firebase
13+
description: Uses adb to push a Firebase push notification to your local emulator
14+
arguments:
15+
- name: your_app_package_name
16+
description: The package name of the app that you want to receive the notification. It has to have implemented the receiver for it to work.
17+
default_value: com.my.app.package
18+
- name: notification_title
19+
description: The title of the notification
20+
default_value: title
21+
- name: notification_body
22+
description: The body of the notification
23+
default_value: body
24+
- name: deep_link
25+
description: A deeplink for the notification (eg. `app://open.my.app`)
26+
author: Odin Asbjørnsen
27+
author_url: https://github.com/oas004
28+
shells: []

specs/brew/install_a_specific_version_of_a_homebrew_formula.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ tags:
66
description: "Install a specific version of a formula using Homebrew. To list all available versions, you can run `brew search {{formula_name}}@`."
77
arguments:
88
- name: formula_name
9-
description: The fomula to install
9+
description: The formula to install
1010
default_value: ~
1111
- name: version_name
12-
description: "The version of the formula to install. You can ensure this version is availalble on homebrew by running `brew search {{formula_name}}`"
12+
description: "The version of the formula to install. You can ensure this version is available on homebrew by running `brew search {{formula_name}}`"
1313
default_value: ~
1414
source_url: "https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula"
1515
author: Debilski

specs/du/find_biggest_files.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# The name of the workflow.
3+
name: Find the largest 10 files in a directory
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
du -ah {{directory}} | sort -hr | head -n 10
7+
# Any tags that the workflow should be categorized with.
8+
tags:
9+
- du
10+
# A description of the workflow.
11+
description: Uses 'du' command to find file and directory sizes in the current working directory, then sorts by size and displays 10 largest files
12+
# List of arguments within the command.
13+
arguments:
14+
# Name of the argument within the command. This must exactly match the name of the argument
15+
# within the command (without the curly braces).
16+
- name: directory
17+
# The description of the argument.
18+
description: The name of the directory where you want to find files
19+
# The default value for the argument.
20+
default_value: .
21+
# The source URL for where the workflow was generated from, if any.
22+
source_url: "https://linuxhandbook.com/find-biggest-files-linux/"
23+
# The author of the workflow.
24+
author: Christopher Murray
25+
# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page.
26+
author_url: "https://linuxhandbook.com/find-biggest-files-linux/"
27+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
28+
# See FORMAT.md for the full list of accepted values.
29+
shells: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: FFprobe file in json
3+
command: ffprobe -i {{media_file_path}} -show_streams -show_format -print_format json
4+
tags:
5+
- ffprobe
6+
description: Show streams and format of media file in json format using ffprobe
7+
arguments:
8+
- name: media_file_path
9+
description: Path of media file (may be local file path, http url or some other protocols described at https://ffmpeg.org/ffmpeg-protocols.html#Protocols)
10+
source_url: "https://ffmpeg.org/ffprobe.html"
11+
author: tabroot
12+
author_url: "https://github.com/bvc3at"
13+
shells: []

specs/file_manipulation/recursively_find_and_replace_within_a_directory.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tags:
55
- file manipulation
66
- sed
77
- grep
8-
description: Replaces all occurences of a string recursively within a directory
8+
description: Replaces all occurrences of a string recursively within a directory
99
arguments:
1010
- name: old_text
1111
description: The text that should be replaced

specs/file_manipulation/sort_a_file_by_line_length.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ command: "cat {{file_name}} | awk '{ print length, $0 }' | sort -n -s | cut -d\"
44
tags:
55
- file manipulation
66
- awk
7-
description: "Sorts a text file by line length (including spaces). The `-s` flag indicates that any lines that are the same length are kept in the relative order that they ocurred in the input."
7+
description: "Sorts a text file by line length (including spaces). The `-s` flag indicates that any lines that are the same length are kept in the relative order that they occurred in the input."
88
arguments:
99
- name: file_name
1010
description: The name of the file to sort.

0 commit comments

Comments
 (0)