Skip to content

Add a more informational README#55

Merged
alokedesai merged 8 commits intomainfrom
aloke/better_readme
Apr 19, 2022
Merged

Add a more informational README#55
alokedesai merged 8 commits intomainfrom
aloke/better_readme

Conversation

@alokedesai
Copy link
Copy Markdown
Member

  1. Includes more information about where workflows live (specs/ directory)
  2. Includes a workflow example directly within the README
  3. Lists information about what makes a workflow

Comment thread README.md Outdated
Additionally, a workflow should include:

* A descriptive title that includes the name of the command.
* A description for the workflow and each of its argument, if applicable.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe include something here about how the name/description are used in search? Also - maybe something about categories as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Copy Markdown
Contributor

@vorporeal vorporeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So much better! Left some comments on incremental improvements/adjustments to wording.

Comment thread README.md
Workflows can be accessed within Warp directly within the app, either through the Command Palette or by pressing `ctrl-shift-r`.
Workflows can be accessed directly within Warp, either through the Command Palette or by pressing `ctrl-shift-r`.

All public workflows (i.e. workflows within this repo) are also available at [commands.dev](https://www.commands.dev/).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You used the term "global" above but "public" here - desired? Should we standardize on one or is the semantic difference meaningful here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it's a good question--I think "public" is clearer, will do a pass to make that consistent

Comment thread README.md Outdated
# The name of the workflow.
name: Uninstall a Homebrew package and all of its dependencies
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
command: "brew tap beeftornado/rmtree\nbrew rmtree {{package_name}}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on using YAML's support for multi-line strings here? IMO this field benefits from having easily readable contents (reduced chance of bugs), and this example should highlight the desired style.

Something like:

command: |-
  brew tap beeftornado/rmtree
  brew rmtree {{package_name}}
# Any tags that workflow should be categorized with.
tags:

...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread README.md Outdated
name: Uninstall a Homebrew package and all of its dependencies
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
command: "brew tap beeftornado/rmtree\nbrew rmtree {{package_name}}"
# Any tags that workflow should be categorized with.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "Any tags that the workflow should be categorized with."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, good catch

Comment thread README.md Outdated
name: Uninstall a Homebrew package and all of its dependencies
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
command: "brew tap beeftornado/rmtree\nbrew rmtree {{package_name}}"
# Any tags that workflow should be categorized with.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any restrictions on what tags can/should be added here (for global/public workflows)? I expect we don't want the in-app list to grow too long (it would, in the extreme, make search the only way to reasonably find workflows in-app).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I'm adding that as a section in the "what makes a good workflow" section--ideally we don't want too many unnecessary tags

Comment thread README.md Outdated
Comment thread README.md
# 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.
author_url: "https://stackoverflow.com/users/207894"
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
shells: []
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forward-thinking: Is this due to some shells (i.e.: fish) having different syntax? If so, would we want to consider supporting multiple command values so that there could be per-shell overrides?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that's another fair way of approaching it--I think both are valid fwiw. The reason I prefer writing it like this is that arguments could also differ between the two commands, in which case you end up essentially creating two workflows anyway. It also makes things like author accreditation hard.

Comment thread README.md
```bash
mkdir -p ~/.warp/workflows && cp {{workflow}}.yaml; ~/.warp/workflows/
```
2) Open Warp and open workflows by pressing `ctrl-shift-r` or using the command palette.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should "workflows" be capitalized when we're talking about the UI component (e.g.: "Open Warp and open Workflows" or "Open Warp and open the Workflows panel")?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from chatting with Zach I think we want to keep it lowercase

Comment thread README.md Outdated
Additionally, a workflow should include:

* A descriptive title that includes the name of the command.
* A description for the workflow and each of its argument, if applicable.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"each of its arguments"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread README.md Outdated
### What Makes a Useful Workflow?
A good workflow is one that includes a command with many flags or arguments or one that is hard to remember.

Additionally, a workflow should include:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is "should" the right strength or is it more accurately "must" (for the purposes of us accepting a PR into the public workflows repository)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure--originally chose "should" so that it wouldn't come off too harsh, but i think that's fine

@alokedesai
Copy link
Copy Markdown
Member Author

PTAL

Copy link
Copy Markdown
Contributor

@vorporeal vorporeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread README.md Outdated
name: Uninstall a Homebrew package and all of its dependencies
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
command: |-
brew tap beeftornado/rmtree
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: two space indent for this line and the one below

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

@alokedesai alokedesai merged commit 2b3d9b3 into main Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants