Skip to content

tokei

Count your code, quickly

Tokei is a program that displays statistics about your code. Tokei will show the number of files, total lines within those files and code, comments, and blanks grouped by language.

terminal

https://github.com/XAMPPRocky/tokei

arm64 amd64 armhf

Installation

1. Add WakeMeOps repository

curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash

2. Install tokei

sudo apt install tokei

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    tokei=12.1.2*

USER 1001
- name: Install dependencies
  uses: upciti/wakemeops-action@v1
  with:
    packages: |
      tokei=12.1.2*

Download URLs

Version SHA256 Size (KB)
12.1.2 b391251d8188f2ead0a3ae77a6141bd9d0616f231c1ff46c3704beaa1b917974 1087
Version SHA256 Size (KB)
13.0.0-alpha.0 40c6dbbc9a240f8fc97eeaab29c47d6c27da772962d3ace521dd33b2e2549339 962
12.1.2 1c0c90f75130610d5d6d73dba30b74157345c56bea96a756f1696f7e42cfd337 915
Version SHA256 Size (KB)
13.0.0-alpha.0 5a4a567f17d24b9e9245685340aa9bbd64361fd96bfa9298ffeab0b0a830e885 959
12.1.2 4757b5010f85e8331519c9a36bea612d8dafd16170a71d0a33a909b7d5968abe 945

Blueprints

Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for tokei are versioned here.

Click here to see tokei ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/terminal/tokei/ops2deb.yml
- name: tokei
  version: 12.1.2
  revision: "2"
  homepage: https://github.com/XAMPPRocky/tokei
  summary: counts the lines of source code
  description: |-
    Tokei is a program that displays statistics about your code.
    Tokei will show the number of files, total lines within those files and
    code, comments, and blanks grouped by language.
  fetch: https://github.com/XAMPPRocky/tokei/releases/download/v{{version}}/tokei-x86_64-unknown-linux-gnu.tar.gz
  script:
    - mv tokei {{src}}/usr/bin/

- name: tokei
  matrix:
    architectures:
      - arm64
      - armhf
    versions:
      - 12.1.2
      - 13.0.0-alpha.0
  revision: "2"
  homepage: https://github.com/XAMPPRocky/tokei
  summary: counts the lines of source code
  description: |-
    Tokei is a program that displays statistics about your code.
    Tokei will show the number of files, total lines within those files and
    code, comments, and blanks grouped by language.
  fetch:
    url: https://github.com/XAMPPRocky/tokei/releases/download/v{{version}}/tokei-{{target}}.tar.gz
    targets:
      amd64: x86_64-unknown-linux-gnu
      armhf: armv7-unknown-linux-gnueabihf
      arm64: aarch64-unknown-linux-gnu
  script:
    - mv tokei {{src}}/usr/bin/

The blueprint fetch keyword contains a URL template pointing to tokei releases. Downloaded files are locked in a lockfile versioned here.

Click here to see tokei release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/terminal/tokei/ops2deb.lock.yml
- url: https://github.com/XAMPPRocky/tokei/releases/download/v12.1.2/tokei-x86_64-unknown-linux-gnu.tar.gz
  sha256: c8c5c4ab9e1ff47e745de70f4af3214078657399fa7a0da0b5f209d780e49978
  timestamp: 2021-12-14 15:37:09+00:00
- url: https://github.com/XAMPPRocky/tokei/releases/download/v12.1.2/tokei-aarch64-unknown-linux-gnu.tar.gz
  sha256: ef514fd12cfc3ee2d1725e5ecb866ee1123163004879ec285b22f3323389ebe2
  timestamp: 2022-01-07 17:50:50+00:00
- url: https://github.com/XAMPPRocky/tokei/releases/download/v12.1.2/tokei-armv7-unknown-linux-gnueabihf.tar.gz
  sha256: cfd9b2cf23fbe4f8693a87f1e7652126205e0ef3c79c05c38dfaff238d557e71
  timestamp: 2022-01-07 17:50:50+00:00
- url: https://github.com/XAMPPRocky/tokei/releases/download/v13.0.0-alpha.0/tokei-aarch64-unknown-linux-gnu.tar.gz
  sha256: 2e1631127869cd538ca265421e19ee9837e55a8bcbed1de8941b5ddd551205b0
  timestamp: 2023-03-27 18:25:01+00:00
- url: https://github.com/XAMPPRocky/tokei/releases/download/v13.0.0-alpha.0/tokei-armv7-unknown-linux-gnueabihf.tar.gz
  sha256: 644a09a8914bf2057c35b8c82fda5c19581f56b707fccf67fdb502d0a1bbdee2
  timestamp: 2023-03-27 18:25:01+00:00

Badge

WakeMeOps

[![WakeMeOps](https://docs.wakemeops.com/badges/tokei.svg)](https://docs.wakemeops.com/packages/tokei)
<a href="https://docs.wakemeops.com/packages/tokei">
  <img src="https://docs.wakemeops.com/badges/tokei.svg"/>
</a>
.. image:: https://docs.wakemeops.com/badges/tokei.svg
:target: https://docs.wakemeops.com/packages/tokei