diff --git a/README.md b/README.md index e597627..a39b386 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ go get github.com/momaek/authy 3. If the program identifies an existing Authy account, it will send a device registration request using the push method. This will send a push notification to your existing Authy apps (be it on Android, iOS, Desktop or Chrome), and you will need to respond that from your other app(s). 4. If the device registration is successful, the program will save its authentication credential (a random value) to `$HOME/.authy.json` for further uses. 5. Run `authy refresh`. The command will prompt you for your Authy backup password. This is required to decrypt the TOTP secrets for the next step. -6. Run `authy fuzz {query}` will get an AlfredWorkflow style output +6. Run `authy search {query}` will get an AlfredWorkflow style output 7. Download AlfredWorkflow [Authy.alfredworkflow](https://github.com/momaek/authy/raw/master/alfredworkflow/Authy.alfredworkflow) 8. Double click `Authy.alfredworkflow` or manual import from Alfred 9. Open Alfred and type `at {query}` diff --git a/alfredworkflow/Authy.alfredworkflow b/alfredworkflow/Authy.alfredworkflow index 39786f4..eca83c8 100644 Binary files a/alfredworkflow/Authy.alfredworkflow and b/alfredworkflow/Authy.alfredworkflow differ diff --git a/authy b/authy new file mode 100755 index 0000000..70c4d1a Binary files /dev/null and b/authy differ diff --git a/cmd/fuzz.go b/cmd/fuzz.go index eb7b3d7..9cceeb3 100644 --- a/cmd/fuzz.go +++ b/cmd/fuzz.go @@ -8,9 +8,9 @@ import ( "github.com/spf13/cobra" ) -// fuzzCmd represents the fuzz command -var fuzzCmd = &cobra.Command{ - Use: "fuzz", +// 'search' represents the fuzzy search +var searchCmd = &cobra.Command{ + Use: "search", Short: "Fuzzy search your otp tokens(case-insensitive)", Long: `Fuzzy search your otp tokens(case-insensitive) @@ -36,6 +36,6 @@ First time(or after clean cache) , need your authy main password`, var alfredCount *int func init() { - rootCmd.AddCommand(fuzzCmd) - alfredCount = fuzzCmd.Flags().CountP("alfred", "a", "Specify Output Mode AlfredWorkflow") + rootCmd.AddCommand(searchCmd) + alfredCount = searchCmd.Flags().CountP("alfred", "a", "Specify Output Mode AlfredWorkflow") }