Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Version = "dev" Commit = "" SigningPublicKey = "" )
Version, Commit, and SigningPublicKey are set with -ldflags in release builds. SigningPublicKey is the base64 ed25519 public key that examines the signatures of CLI releases. A build without it installs no updates. See docs/releasing.md.
Functions ¶
func InvokedAsLegacy ¶
InvokedAsLegacy reports whether the binary ran under its old name.
func MigrateLegacyBinary ¶
func MigrateLegacyBinary()
MigrateLegacyBinary runs when the binary starts as aidocs, which is what a pre-rename auto-update leaves behind. It renames the file to slashdocs and leaves aidocs as a symlink, so the old name keeps printing the rename notice.
func MigrateLegacyInstall ¶
func MigrateLegacyInstall()
MigrateLegacyInstall moves the old config directory and agent skills to their new names. It is best-effort and runs before every command, so it only costs a few stat calls once the move is done.
func RenameNotice ¶
func RenameNotice() string
RenameNotice tells an agent or a person who ran the old name what to do. When slashdocs is not on PATH, it also gives the install command.
Types ¶
type Client ¶
type Client struct {
Base, Token string
HTTP *http.Client
// contains filtered or unexported fields
}
Client is a thin HTTP transport for the slashdocs API.
Source Files
¶
- cli.go
- client.go
- cmd_auth.go
- cmd_config.go
- cmd_context.go
- cmd_docs.go
- cmd_folders.go
- cmd_guidelines.go
- cmd_links.go
- cmd_local.go
- cmd_notifications.go
- cmd_sa.go
- cmd_skills.go
- cmd_update.go
- cmd_version.go
- comment_mentions.go
- config.go
- legacy.go
- local_comments.go
- local_documents.go
- local_service.go
- output.go
- update.go
- version.go