Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

github.com/surajsubramanian/weather-cli

Package Overview
Dependencies
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/surajsubramanian/weather-cli

Source
Go Modules
Version
v0.2.0
Version published
Created
Source

Weather CLI

Simple CLI application to output weather using https://www.visualcrossing.com/weather-api

Build

Download the binary from the releases or build it using

go build -o wcli

Initialization

./wcli -set-key YOURSECRETKEY
./wcli -set-location Espoo

Execution

  • Execute the CLI using ./wcli. Weather details are cached under $HOME/.wcli after initial execution.

  • You can also execute ./wcli -refresh to fetch details from the endpoint once again. Details are newly fetched if the city is changed by the user.

> ./wcli
Espoo, Etelä-Suomi, Suomi
2024-06-16      21:11:30
Time      Temp    Precip  Conditions
21:00:00  15.8    0.0     Overcast
22:00:00  15.3    0.0     Overcast
23:00:00  15.1    0.0     Overcast

FAQs

Package last updated on 17 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts