cw

command module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 8 Imported by: 0

README

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

TODO: Prepare installation manual.

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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