This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fiatjaf
committed
Feb 7, 2021
1 parent
3abe73b
commit 2e20ebc
Showing
4 changed files
with
43 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
noscl | ||
dist |
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 @@ | ||
Public domain. |
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
noscl: $(shell find . -name "*.go") | ||
go build -ldflags="-s -w" -o ./noscl | ||
|
||
dist: $(shell find . -name "*.go") | ||
mkdir -p dist | ||
gox -ldflags="-s -w" -osarch="windows/amd64 darwin/amd64 linux/386 linux/amd64 linux/arm freebsd/amd64" -output="dist/noscl_{{.OS}}_{{.Arch}}" |
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,37 @@ | ||
noscl | ||
===== | ||
|
||
Command line client for [Nostr](https://github.com/fiatjaf/noscl). | ||
|
||
## Installation | ||
|
||
Compile with `go get github.com/fiatjaf/noscl` or [download a binary](releases/). | ||
|
||
## Usage | ||
|
||
``` | ||
noscl | ||
Usage: | ||
noscl home [--page=<page>] | ||
noscl setprivate <key> | ||
noscl public | ||
noscl publish [--reference=<id>] <content> | ||
noscl profile <key> [--page=<page>] | ||
noscl follow <key> | ||
noscl unfollow <key> | ||
noscl event <id> [--page=<page>] | ||
noscl relay | ||
noscl relay add <url> | ||
noscl relay remove <url> | ||
``` | ||
|
||
The basic flow is something like | ||
|
||
1. Add some relays with `noscl relay add <relay url>` (see https://moonbreeze.richardbondi.net/nostr-registry/ for some publicly available relays) | ||
2. Follow some people with `noscl follow <pubkey>` | ||
3. Browse some profiles from people (you don't have to be following) with `noscl profile <pubkey>` | ||
4. See the feed of people you follow with `noscl home` | ||
5. Set your own private key with `noscl setprivate <hex private key>` | ||
6. Get your public key with `noscl public` so you can share it with others | ||
7. Publish some notes with `noscl publish <my note content>` |