Skip to content

pgrunm/cw

Repository files navigation

cw

Go Report Card OpenSSF Scorecard

Aren't you also annoyed by people, who say XYZ will take place in calendar week XX? cw comes to solve this issue! It is a commandline tool for finding out the calendar week of a date. It's completely written in Go.

Features

  • Get the current calendar week without specifying any arguments.
  • Get the calendar week of a date.
  • When entering a week as flag, get start and end date.
  • Print a list of all calendar weeks of a given year as a table
  • Print the start and end date if you enter a year and calendar week
  • Support for different output formats like JSON, table (maybe more to come)
  • Support for different date formats

Installation

Install as Go binary

Simply run go install github.com/pgrunm/cw@latest to install the program directly.

Download binary package

You can also download a compiled package from the releases page.

Usage

cw supports a variety of different commandline parameters. You can see them by running cw -h or below:

NAME:
   cw - Find the appropriate calendar week of a given date.

USAGE:
   cw [global options] command [command options]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --summary, -s             Print out the calendar week in a short summary. (default: false)
   --table, -t               Print out the calendar weeks in a table format. (default: false)
   --output value, -o value  Prints the requested calendar week as JSON.
   --help, -h                show help

Development

Development takes place in main branch, so it can be ahead of other branches. In case you'd like to access a specific version, please use the according tag or download any desired release.

  1. Clone the repository with git clone https://github.com/pgrunm/cw
  2. Run go get ..
  3. Start developing.

About

Commandline tool to get the current calender week.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages