Skip to content
Permalink
Browse files

Renamed some functions for better clarity

  • Loading branch information...
Reuven V. Gonzales
Reuven V. Gonzales committed Oct 28, 2014
1 parent 9053176 commit b0e0bbbda9c95418b5ca2ef2376ec69167885d85
Showing with 5 additions and 4 deletions.
  1. +4 −3 client.go
  2. +1 −1 main.go
@@ -43,7 +43,7 @@ func LoadConfiguration() *onepass.Configuration {
}
}

func runSudolikeaboss(configuration *onepass.Configuration, done chan bool) {
func retrievePasswordFromOnepassword(configuration *onepass.Configuration, done chan bool) {
// Load configuration from a file
client, err := onepass.NewClientWithConfig(configuration)

@@ -69,7 +69,8 @@ func runSudolikeaboss(configuration *onepass.Configuration, done chan bool) {
done <- true
}

func runGetPassword() {
// Run the main sudolikeaboss entry point
func runSudolikeaboss() {
done := make(chan bool)

configuration := LoadConfiguration()
@@ -85,7 +86,7 @@ func runGetPassword() {
os.Exit(1)
}

go runSudolikeaboss(configuration, done)
go retrievePasswordFromOnepassword(configuration, done)

// Timeout if necessary
select {
@@ -12,7 +12,7 @@ func main() {
app.Version = "0.2.0"
app.Usage = "use 1password from the terminal with ease"
app.Action = func(c *cli.Context) {
runGetPassword()
runSudolikeaboss()
}

app.Run(os.Args)

0 comments on commit b0e0bbb

Please sign in to comment.
You can’t perform that action at this time.