Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewsCmd = &cobra.Command{ Use: "news", Short: "Get the most recent headlines for a specified ticker", Long: `Returns the 5 most recent news headlines for a supplied ticker`, Example: " king-spy news aapl", Run: func(cmd *cobra.Command, args []string) { ticker := args[0] utils.TickerValidation(ticker) ticker = strings.ToLower(ticker) cmdArgs := os.Args[1] _, key, secret := config.Init() GetNews(key, secret, ticker, cmdArgs) }, }
NewsCmd represents the news command
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.