Discover Packages
github.com/winebarrel/opmsk
package
module
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Feb 28, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
opmsk
Mask 1Password CLI password using ANSI color.
cf. https://developer.1password.com/docs/cli/get-started/
Installation
brew install winebarrel/opmsk/opmsk
Usage
op item get <item> --format json | opmsk
Masked values are displayed when selected with the mouse.
Expand ▾
Collapse ▴
Documentation
¶
type Item struct {
ID string `json:"id"`
Title string `json:"title"`
Tags []string `json:"tags"`
Version int `json:"version"`
Vault ItemVault `json:"vault"`
Category string `json:"category"`
LastEditedBy string `json:"last_edited_by"`
CreatedAt time .Time `json:"created_at"`
UpdatedAt time .Time `json:"updated_at"`
AdditionalInformation string `json:"additional_information"`
Urls []ItemUrl `json:"urls"`
Sections []ItemSection `json:"sections"`
Fields []ItemField `json:"fields"`
}
type ItemField struct {
ID string `json:"id"`
Type string `json:"type"`
Label *string `json:"label"`
Value *string `json:"value"`
TOTP string `json:"totp"`
}
type ItemSection struct {
ID string `json:"id"`
Label string `json:"label"`
}
type ItemUrl struct {
Primary bool `json:"primary"`
Href string `json:"href"`
}
type ItemVault struct {
ID string `json:"id"`
Name string `json:"name"`
}
Source Files
¶
Directories
¶
cmd
Click to show internal directories.
Click to hide internal directories.