cmd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package cmd assembles the sectors CLI command tree. Each market lives in its own subpackage (cmd/idx, cmd/sgx, …) exposing a NewCmd() constructor; this package wires them onto the root command and owns the global flags.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the CLI version, overridden at build time via -ldflags "-X github.com/emrsyah/sectors-cli/cmd.Version=v1.2.3" (goreleaser sets this automatically).

Functions

func Execute

func Execute()

Execute runs the root command and exits the process with an appropriate code.

Types

This section is empty.

Directories

Path Synopsis
Package cmdutil holds helpers shared across every command package: building an authenticated client, rendering responses/errors, and turning optional flags into the pointer-typed query parameters the generated client expects.
Package cmdutil holds helpers shared across every command package: building an authenticated client, rendering responses/errors, and turning optional flags into the pointer-typed query parameters the generated client expects.
Package idx implements the `sectors idx` command group: Indonesia Stock Exchange data (companies, reports, brokers, transactions, rankings, news).
Package idx implements the `sectors idx` command group: Indonesia Stock Exchange data (companies, reports, brokers, transactions, rankings, news).
Package klse implements the `sectors klse` command group: Bursa Malaysia (KLSE) data — companies by sector, rankings, and company reports.
Package klse implements the `sectors klse` command group: Bursa Malaysia (KLSE) data — companies by sector, rankings, and company reports.
Package mining implements the `sectors mining` command group: the Indonesian mining-sector extension — companies, commodities & trade, production & sites, and licenses, auctions & contracts.
Package mining implements the `sectors mining` command group: the Indonesian mining-sector extension — companies, commodities & trade, production & sites, and licenses, auctions & contracts.
Package sgx implements the `sectors sgx` command group: Singapore Exchange (SGX) data — screener, reports, news, filings, and transactions.
Package sgx implements the `sectors sgx` command group: Singapore Exchange (SGX) data — screener, reports, news, filings, and transactions.

Jump to

Keyboard shortcuts

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