Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed fuzz function name to search #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
Binary file modified alfredworkflow/Authy.alfredworkflow
Binary file not shown.
Binary file added authy
Binary file not shown.
10 changes: 5 additions & 5 deletions cmd/fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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")
}