goic

command
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Agent CLI

go install github.com/aviate-labs/agent-go/cmd/goic
goic version
# 0.0.1

Generating Agents

To generate an agent you will need the .did file. Some interface specifications can be fetched directly from a canister through the __get_candid_interface_tmp_hack endpoint (this gets exposed by default w/ Motoko). Based on this file an agent can be generated.

Options

The generate command can be customized by defining a custom output or packageName flag.

Fetch The DID
goic generate did {PATH_TO_DID} {NAME}
goic fetch ryjl3-tyaaa-aaaaa-aaaba-cai --output=ledger.did
goic generate did ledger.did ledger --output=ledger.go --packageName=main
go fmt ledger.go

OR

goic generate remote {CANISTER_ID} {NAME}
goic generate remote ryjl3-tyaaa-aaaaa-aaaba-cai ledger --output=ledger.go --packageName=main
go fmt ledger.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

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