Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ddddddo/calma

♻Calendar for Markdown♻ ...only for Japan!🗾
https://github.com/ddddddo/calma

calendar ja markdown

Last synced: about 2 months ago
JSON representation

♻Calendar for Markdown♻ ...only for Japan!🗾

Awesome Lists containing this project

README

        

# calma

[![GitHub release](https://img.shields.io/github/release/ddddddO/calma.svg)](https://github.com/ddddddO/calma/releases) [![Go Reference](https://pkg.go.dev/badge/github.com/ddddddO/calma)](https://pkg.go.dev/github.com/ddddddO/calma) [![ci](https://github.com/ddddddO/calma/actions/workflows/ci.yaml/badge.svg)](https://github.com/ddddddO/calma/actions/workflows/ci.yaml)

> [!WARNING]
>Only for Japan

Calendar for Markdown

Inspired by **[_y-yagi/jpcal_](https://github.com/y-yagi/jpcal)**

Can be used with [esa](https://esa.io/)

## Usage

```console
$ calma -h
This CLI outputs Japanese calendar in Markdown. It supports national holidays.

Usage of calma:
-a int
Number of months to advance
-html
Output html
-r int
Number of months to retreat

$ calma
#### 2021年9月
日|月|火|水|木|金|土
--------|--------|--------|--------|--------|--------|--------
22 | 23 | 24 | 25 | 26 | 27 | 28
29 | 30 | 31 | 1 | 2 | 3 | 4
5 | 6 | 7 | 8 | 9 | 10 | 11
12 | 13 | 14 | 15 | 16 | 17 | 18
19 | 20 | 21 | 22 | 23 | 24 | 25
26 | 27 | 28 | 29 | 30 | 1 | 2
```

Markdown output image

![image](./sample.png)

## Installation

### Go (1.16 or higher)

```console
$ go install github.com/ddddddO/calma/cmd/calma@latest
```

### Go (1.15 or less)

```console
$ go get github.com/ddddddO/calma/cmd/calma
```

### Homebrew

```console
$ brew install ddddddO/tap/calma
```

### Scoop

```console
$ scoop bucket add ddddddO https://github.com/ddddddO/scoop-bucket.git
$ scoop install ddddddO/calma
```

### deb
```console
$ export CALMA_VERSION=X.X.X
$ curl -o calma.deb -L https://github.com/ddddddO/calma/releases/download/v$CALMA_VERSION/calma_$CALMA_VERSION-1_amd64.deb
$ dpkg -i calma.deb
```

### rpm
```console
$ export CALMA_VERSION=X.X.X
$ yum install https://github.com/ddddddO/calma/releases/download/v$CALMA_VERSION/calma_$CALMA_VERSION-1_amd64.rpm
```

### apk
```console
$ export CALMA_VERSION=X.X.X
$ curl -o calma.apk -L https://github.com/ddddddO/calma/releases/download/v$CALMA_VERSION/calma_$CALMA_VERSION-1_amd64.apk
$ apk add --allow-untrusted calma.apk
```

### etc

**download binary from [here](https://github.com/ddddddO/calma/releases).**

## Miscellaneous
```console
$ calma -html

2022年6月







22
23
24
25
26
27
28

29
30
31
1
2
3
4

5
6
7
8
9
10
11

12
13
14
15
16
17
18

19
20
21
22
23
24
25

26
27
28
29
30
1
2

3
4
5
6
7
8
9

```

## Stargazers over time
[![Stargazers over time](https://starchart.cc/ddddddO/calma.svg?variant=adaptive)](https://starchart.cc/ddddddO/calma)