highlighter

package module
v0.0.0-...-1cc967b Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 11 Imported by: 0

README

highlighter

CLI with NIP-84 implement

Setup

Create your config file in ~/.config/nostr/highlighter.json containing:

{
    "relays": ["wss://relay.highlighter.com/", "wss://relay.damus.io/"],
    "npub": "npub14ge829c4pvgx24c35qts3sv82wc2xwcmgng93tzp6d52k9de2xgqq0y4jk"
}

Finally, set your environment variable:

export NOSTR=~/.config/nostr/highlighter.json`

Build the executable

make build

Usage

> highlighter -content "Some highlighted content" -context "Why did you make this highlight" -url "https://go.dev/blog/strings"

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("todo list not found")

Functions

func Main

func Main() error

func Publish

func Publish(ctx context.Context, cfg *nos.Config, h Highlight) error

Types

type Highlight

type Highlight struct {
	Content  string `json:"content"`
	Context  string `json:"context"`
	Url      string `json:"url"`
	TextNote string `json:"textnote"`
	Article  string `json:"article"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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