https://github.com/andrewarrow/cloutcli
old library to make building things with bitclout/deso easy [not maintained]
https://github.com/andrewarrow/cloutcli
Last synced: 9 months ago
JSON representation
old library to make building things with bitclout/deso easy [not maintained]
- Host: GitHub
- URL: https://github.com/andrewarrow/cloutcli
- Owner: andrewarrow
- License: mit
- Created: 2021-06-21T03:37:50.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-05T18:09:16.000Z (almost 5 years ago)
- Last Synced: 2024-12-31T04:02:40.916Z (over 1 year ago)
- Language: Go
- Homepage: https://andrewarrow.dev/
- Size: 166 KB
- Stars: 18
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloutcli
library to make building things with bitclout easy
# quick start demo
```
cmd $ ./clout demo
clout demo visualizegraph # make clout.gv graph file
clout demo printall # print all clouts
clout demo search # search sqlite database
clout demo sqlite # place data into local sqlite database
search examples:
./clout demo search --term=hi --table=users
./clout demo search --term=hi --table=posts
./clout demo search --term=username --table=follow --degrees=2
```
# full menu
```
cloutcli/cmd $ ./clout
clout account # list your various accounts
clout ls # list global posts
clout message # send, send bulk, read
clout mongo # query from mongodb
clout sell # sell coins
clout sqlite # import from badger, query sqlite
cloutcli/cmd $ ./clout message
clout message bulk # --to=allfollowers [--text=foo]
clout message inbox # --filter=myhodlers
clout message new # --to=username [--text=foo]
clout message reply # --id=foo [--text=foo]
clout message show # --id=foo
cloutcli/cmd $ ./clout sell
clout sell dust # --limit=x [--execute]
cloutcli/cmd $ ./clout sqlite
clout sqlite fill # --dir=/path/to/badgerdb
clout sqlite graph # produce clout.gv file
clout sqlite query # --term=foo [--table=x]
```
# building the "clout" executable
There is no main.go file in the root directory.
```
cd cmd
go mod tidy
go build
./clout
```
This is done to keep the root directory having the package name "cloutcli".
Which allows other go programs to just import:
```
import "github.com/andrewarrow/cloutcli"
```
and then:
```
list := cloutcli.GlobalPosts()
for _, post := range list {
fmt.Println(post.Body)
}
```
# Example
[github.com/andrewarrow/referential](https://github.com/andrewarrow/referential)