awm
Version:
Alfred Workflow Manager, using packal.org
92 lines (62 loc) • 2.54 kB
Markdown
awm [![npmV]][npmUrl] [![npmDown]][npmUrl]
=============
Alfred Workflow Manager, using [packal.org](http://packal.org) by [Shawn Patrick Rice](https://github.com/shawnrice)
# Install
To install `awm` from npm, run:
```
$ npm install -g awm
```
# Usage
```
$ awm -h
Usage: awm [options] [command]
Commands:
search <keyword> Search workflows by keyword.
info <bundleID> Workflow general information.
open <bundleID> Open specified workflow's directory.
home [bundleID] Opens the workflow's Packal URL. Or Packal home if none specified.
list List installed workflows.
outdated List outdated workflows.
install <bundleID> Install specified workflow.
update Update the manifest file from packal.org.
upgrade [bundleID] Upgrade the specified package or all outdated ones if none specified.
remove <bundleID> Remove specified workflow.
cleanup Remove all cached downloads.
reset Reset the manifest file from packal.org.
Options:
-h, --help output usage information
-V, --version output the version number
```
# Todo
* Add tests
* Support *real* install workflow (not download and open `.alfredworkflow` file).
* Support *real* upgrade workflows (not download and open `.alfredworkflow` file).
* Support upgrade ALL outdated.
* ~~Support remove workflows.~~
* Support `bundle` installing.
Note: one thing to consider when implementing *real* install and update is the previous stripping and migration of hotkeys and keywords.
# Development
Pull requests are happily accepted. I have little time to finish the TODO list for the moment.
To link the `awm` command for development you'll need to fork and clone this project:
```sh
$ git clone https://github.com/<your-github-username>/awm
```
Then make `npm` link the `awm` command to the local project destination:
```sh
$ cd awm
awm$ npm link
```
This way you can invoke the `awm` command in the shell reflecting your local work.
If you wish to unlink from the local project:
```sh
$ npm r awm -g
```
> I know, `unlink` should do the trick but no. (https://github.com/npm/npm/issues/4005)
# License
Copyright (c) 2014 Jonathan Wiesel
[MIT License](http://jonathanwiesel.mit-license.org/)
[npmV]: https://img.shields.io/npm/v/awm.svg
[npmDown]: https://img.shields.io/npm/dm/awm.svg
[npmUrl]: https://www.npmjs.com/package/awm
# Contributors :heart:
* [claui](https://github.com/claui)