-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from jalpp/dev
Custom vault support and bug fixes
- Loading branch information
Showing
18 changed files
with
501 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## Config custom vault to use PassDIY TUI | ||
|
||
to config custom vaults that are not currently supported by Passdiy all you have to do is edit the interface.go file and define your custom implementation of the functions, then you set `export USE_PASDIY_CUSTOM_VAULT=true` and PassDIY will automatically interface the custom vault | ||
|
||
```go | ||
package extend | ||
|
||
var ( | ||
VAULT_PREFIX = "pref" | ||
VAULT_MAIN_DESC = "Manage token/password on " + VAULT_PREFIX | ||
VAULT_SUBCOMMAND_NAMES = []string{VAULT_PREFIX + "store", VAULT_PREFIX + "list"} | ||
VAULT_SUBCOMMAND_DESC = []string{"store", "lists"} | ||
VAULT_DISPLAY_COLOR = "#E2EAF4" | ||
) | ||
|
||
func ConnectUI() string { | ||
return Connect() | ||
} | ||
|
||
func StoreUI(userInput string) string { | ||
|
||
var parser string | ||
|
||
return Create(userInput, parser) | ||
} | ||
|
||
func ListUI() string { | ||
return List() | ||
} | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package extend | ||
|
||
// add connect implementation for vault here | ||
|
||
func connectHelper() { | ||
|
||
} | ||
|
||
func Connect() string { | ||
return "Extended Vault Connect Message" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package extend | ||
|
||
// add create implementation for vault here | ||
|
||
func createHelper() { | ||
|
||
} | ||
|
||
func Create(name string, val string) string { | ||
return "Extanded Vault Create Message" | ||
} |
Oops, something went wrong.