
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Contents
awf
(Alfred Workflow) is an OS X CLI for managing and
assisting in the development of workflows for
command-line launcher Alfred - versions 3 and 2 are supported.
It comes with a broad range of features:
Note: Some features related to Alfred Preferences.app
involve GUI scripting
and therefore require that the application running awf
- typically, Terminal.app
-
be granted access to accessibility features - you will be prompted for authorization
on first use; for more information, see Apple's support article on the subject.
awf list -s i net.same2u. # list matching workflows by bundle ID substring
awf info net.same2u.speak.awf
awf which net.same2u.speak.awf # prints installation folder path
awf reveal net.same2u.speak.awf
awf search speak
awf cd net.same2u.speak.awf # opens a tab in a new window
awf edit net.same2u.speak.awf
awf edit # from a workflow source folder
awf install .
*.alfredworkflow
archive from a source folder.
awf export . # exports to '*.alfredworkflow' in same folder by default
Note:
awf link . # effective installation without moving the directory
awf unlink . # remove a symlink - effective uninstallation
awf todev net.same2u.speak . # move to current folder and perform 'awf link'
awf fromdev . # -k keeps the source folder
version
.
awf version patch # bumps the patch component of the workflow's version number
The Usage chapter contains the full manual.
Note: Even if you don't use Node.js itself: its package manager, npm
, works across platforms and is easy to install; try
curl -L http://git.io/n-install | bash
With Node.js installed, install the package as follows:
[sudo] npm install -g awf
Note:
sudo
depends on how you installed Node.js and whether you've changed permissions later; if you get an EACCES
error, try again with sudo
.-g
ensures global installation and is needed to put awf
in your system's $PATH
.awf
.chmod +x awf
.$PATH
, such as /usr/local/bin
.awf
currently does not have a man
page, but its manual is accessible
through the help
sub-command:
awf help
(or awf -h
) gives a concise overview of all sub-commands.awf help all
additionally prints detailed descriptions of all sub-commands.awf help <sub-command>
prints the detailed description of the specified sub-command;
e.g., awf help list
$ awf --help
SYNOPSIS
awf list|ls [-b] [-o fieldIdChars] [[-s fieldIdChars] [-x|-r] searchTerm]
Lists installed workflows, optionally with custom output and filtering.
awf search [searchTerm]
Searches for workflows in the Alfred Preferences application.
awf info [-b] [-o fieldIdChars] [wfFolderOrBundleID]
Prints a workflow's metadata, optionally with selectable output fields.
awf id [wfFolder]
Prints the bundle ID of a workflow.
awf which [-l|-P] [-R] [wfDevFolderOrBundleID]
Prints the full path to an installed workflow's folder.
awf reveal [-P] [wfDevFolderOrBundleID | '/']
Reveals an installed workflow's folder in Finder.
'/' reveals the root of Alfred's workflow folders.
awf cd [-P] [wfFolderOrBundleID | '/']
Changes to an installed workflow's folder in a new Terminal window.
'/' changes to the root of Alfred's workflow folders.
awf edit [wfFolderOrBundleID]
Opens a workflow for editing in the Alfred Preferences application.
awf install [wfDevFolder]
Installs a workflow from a dev folder.
awf export [-R] [wfFolderOrBundleID [outFolder]]
Exports a workflow to an *.alfredworkflow ZIP archive.
awf link|ln [-f] [wfDevFolder [symlinkName]]
Symlinks a dev workflow into the folder of installed workflows.
awf unlink|unln [wfFolderOrBundleID]
Removes a symlink to a dev workflow from the folder of installed ones.
awf prune
Removes dead symlinks from the folder of installed workflows.
awf todev [-R] [wfInstalledFolderOrBundleID [wfDevFolder]]
Converts an installed workflow to a dev workflow.
awf fromdev [-k] [wfDevFolder]
Converts a dev workflow to a regular installed workflow.
awf version [-f] [newVersion|'major|'minor'|'patch' [wfFolderOrBundleId]]
Prints or assigns a workflow's version number.
awf help [command | 'all'] # or: awf command -h
Prints help information.
DESCRIPTION
Performs various operations related to Alfred workflows.
(To learn about Alfred, go to http://alfredapp.com)
Supports Alfred 3 and Alfred 2; if both are installed, pass -2 as the very
first argument to target Alfred 2.
To get help for a specific command, use `awf help <command>`
or `awf <command> -h`.
WFDEVFOLDER is a folder path containing an Alfred workflow
*dev* (development) project, in a *separate location* from and
and typically symlinked into the folder hosting all installed
workflows.
WFINSTALLEDFOLDER is a path to a workflow folder among the
*installed* workflows.
WFFOLDER can be either a dev or an installed workflow folder.
Generally, not specifying a folder (or bundle ID) defaults to the current
folder.
In commands where a bundle ID can be specified to target a workflow, only
*installed* workflows are searched for said bundle ID.
For license information and more, visit https://github.com/mklement0/awf
Copyright (c) 2015-2016 Michael Klement mklement0@gmail.com (http://same2u.net), released under the MIT license.
This project gratefully depends on the following open-source components, according to the terms of their respective licenses.
npm dependencies below have optional suffixes denoting the type of dependency; the absence of a suffix denotes a required run-time dependency: (D)
denotes a development-time-only dependency, (O)
an optional dependency, and (P)
a peer dependency.
v0.3.0 (2016-09-15):
-2
as the very
first argument.v0.2.4 (2015-11-07):
edit
sub-command now processes its operand correctly and now fails
in case a dev folder is specified that isn't currently symlinked as
an installed folder.v0.2.3 (2015-11-07):
README.md
: Removed spurious 10.10 requirement; copy-editing.v0.2.2 (2015-11-07):
README.md
disabled for now, because doctoc
doesn't parse the "Usage" chapter correctly.v0.2.1 (2015-11-07):
README.md
v0.2.0 (2015-11-07):
afw version
now expects the version number/increments specifier before the target-folder operand; ''
is now
needed to explicitly ask to get the current version when also specifying a target-folder operand.afw export
now uses a workflow's bundle ID as the filename root by default.v0.1.0-3 (2015-10-28):
awf export
should now work as advertised (support for output-folder argument, resolution of relative paths).v0.1.0-2 (2015-10-28):
.
as the target dev folder for awf link
is now handled correctly.v0.1.0-1 (2015-10-28):
.
as the target dev folder for awf todev
is now handled correctly.awf todev
is found to be located
inside a package project (specifically, if ../package.json
exists), it is
now the parent folder's name that is used to form the symlink name, as it
is assumed to be project-specific, whereas the subfolder hosting the workflow
source code may not.v0.1.0-0 (2015-10-28):
FAQs
CLI for managing Alfred workflows (macOS only)
The npm package awf receives a total of 1 weekly downloads. As such, awf popularity was classified as not popular.
We found that awf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.