- Add secure login command with smart editor detection - Implement Bearer token authentication with hidden input option - Add status command showing monthly quota and rate limits - Support for Free/Basic/Pro tier detection - Smart editor detection (nvim, vim, nano, etc.) - Secure token storage in ~/.config/xapi/config.toml - Add comprehensive README and documentation - Add .gitignore for binaries and IDE files Features: - xapi login: Configure credentials securely - xapi login --token: Hidden input mode (no bash history) - xapi status: Check quota usage and recommendations - xapi status --days N: View N-day usage history Security: - Token input without shell history exposure - Config file with 0600 permissions - HTTPS-only API communication - Clear security warnings in config Built with Cobra CLI framework for a professional CLI experience. Next: Search command with dry-run mode to preview before burning quota.
12 lines
147 B
Go
12 lines
147 B
Go
/*
|
|
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
|
|
|
|
*/
|
|
package main
|
|
|
|
import "git.maxtheweb.com/maxtheweb/xapi-cli/cmd"
|
|
|
|
func main() {
|
|
cmd.Execute()
|
|
}
|