Skip to content

langgenius/mosoo-cli-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mosoo-cli-go

Generated Go CLI for the Mosoo Public Thread API.

Build

make build

This clones or updates the Mosoo repository under .cache/mosoo, exports the Public Thread API OpenAPI document, runs Lathe code generation, and builds bin/mosoo.

Install

make install

By default, installation uses go env GOBIN, or $(go env GOPATH)/bin when GOBIN is empty. Override the destination with BINDIR:

make install BINDIR="$HOME/.bin"

Authenticate

Create an access token from the local Mosoo web app:

http://localhost:5173/settings/access-tokens

Then log in against the local API:

mosoo auth login --hostname http://127.0.0.1:8787/api/v1

Paste the generated access token when prompted.

Common Commands

mosoo search threads --json
mosoo commands --json
mosoo commands show public-thread-api threads create --json

Use commands show before executing an unfamiliar generated command so flags, body shape, auth, and output format are explicit.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors