goobook

command module
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 1 Imported by: 0

README

Goobook

Inspired by goobook. The package provides CLI tool to search from Google Contacts. It can be used from Mutt E-Mail Client.

Configuration

The configuration file is ${XDG_CONFIG_HOME}/goobook/config.yml. The following is its format:

google:
  client_command: $client_command

encryption:
  encrypt_command: $encrypt_command
  decrypt_command: $decrypt_command
$client_command

$client_command is a command which will be run in sh. The expect output is:

{
  "client_id": "...",
  "client_secret": "..."
}

The client_id, client_secret can be requested in https://console.cloud.google.com/apis/credentials.

$encrypt_command and $decrypt_command

The commands are encrypt and decrypt command, with stdin as input, and stdout as output. The following are gnupg example:

encryption:
  encrypt_command: gpg --encrypt --armor --recipient $GPG_ID --no-tty --quiet
  decrypt_command: gpg --decrypt --no-tty --quiet

These commands are used to protect refresh token, which is in $XDG_CACHE_HOME/goobook/refresh-token.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL