Downloads:

414

Downloads of v 12.0.4.1:

84

Last Update:

29 Sep 2020

Package Maintainer(s):

Software Author(s):

  • Erin Power

Tags:

clock sloc cloc code rusty

Tokei

12.0.4.1 | Updated: 29 Sep 2020

Downloads:

414

Downloads of v 12.0.4.1:

84

Maintainer(s):

Software Author(s):

  • Erin Power

Tokei 12.0.4.1

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

Dependency requires reboot

To install Tokei, run the following command from the command line or from PowerShell:

>

To upgrade Tokei, run the following command from the command line or from PowerShell:

>

To uninstall Tokei, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade tokei -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade tokei -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure tokei installed
  win_chocolatey:
    name: tokei
    state: present
    version: 12.0.4.1
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'tokei' do
  action    :install
  version  '12.0.4.1'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: tokei,
    Version: 12.0.4.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller tokei
{
   Name     = 'tokei'
   Ensure   = 'Present'
   Version  = '12.0.4.1'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'tokei':
  provider => 'chocolatey',
  ensure   => '12.0.4.1',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install tokei version="12.0.4.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 29 Sep 2020.

Description

Mean Bean CI
crates.io
Help Wanted
Lines Of Code
Documentation

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.

Example

===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 BASH                    4           49           30           10            9
 JSON                    1         1332         1332            0            0
 Shell                   1           49           38            1           10
 TOML                    2           77           64            4            9
-------------------------------------------------------------------------------
 Markdown                5         1355            0         1074          281
 |- JSON                 1           41           41            0            0
 |- Rust                 2           53           42            6            5
 |- Shell                1           22           18            0            4
 (Total)                           1471          101         1080          290
-------------------------------------------------------------------------------
 Rust                   19         3416         2840          116          460
 |- Markdown            12          351            5          295           51
 (Total)                           3767         2845          411          511
===============================================================================
 Total                  32         6745         4410         1506          829
===============================================================================

Features

  • Tokei is very fast, and is able to count millions of lines of code in seconds.
    Check out our latest release
    to see how Tokei's speed compares to others.

  • Tokei is accurate, Tokei correctly handles multi line comments,
    nested comments, and not counting comments that are in strings. Providing an
    accurate code statistics.

  • Tokei has huge range of languages, supporting over 150 languages, and
    their various extensions.

  • Tokei can output in multiple formats(CBOR, JSON, TOML, YAML)
    allowing Tokei's output to be easily stored, and reused. These can also be
    reused in tokei combining a previous run's statistics with another set.

  • Tokei is available on Mac, Linux, and Windows. See installation
    instructions
    for how to get Tokei on your platform.

  • Tokei is also a library allowing you to easily integrate it with other
    projects.


legal\LICENSE.txt
MIT License (MIT)

Copyright (c) 2016 Erin Power

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

-----------------------------------------------------------------------------

Copyright 2016 Erin Power

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
legal\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Package can be verified like this:

1. Go to https://github.com/XAMPPRocky/tokei, enter to releases and download from there.

   i686:   https://github.com/XAMPPRocky/tokei/releases/download/v12.0.4a/tokei-i686-pc-windows-msvc.exe
   x86_64: https://github.com/XAMPPRocky/tokei/releases/download/v12.0.4a/tokei-x86_64-pc-windows-msvc.exe

   to download the executable(s). You may wish to rename one of the files.

2. You can use one of the following methods to obtain the SHA512 checksum:
   - Use powershell function 'Get-FileHash'
   - Use Chocolatey utility 'checksum.exe'

   checksum:   ff0c452aed9cbe6bb95add1666ab1ecf5cab4b28b88aa46d08aa6d987d1bda77afc074d18fa078e8853f44372bd985006ebd2d84403831781250adcae2fcd5d1
   checksum64: 79d05b9166290ef640277e523bd21fea5db2440777bb26247a0dd823c3f05ecb93f36bb4219cdeab9eec6d89891f47153234925db9f61f4b46f7982d921f6a14

File 'LICENSE.txt' obtained from:
   https://github.com/XAMPPRocky/tokei/blob/v12.0.4a/LICENCE-MIT
and
	https://github.com/XAMPPRocky/tokei/blob/v12.0.4a/LICENCE-APACHE
tools\chocolateyinstall.ps1
$ToolsPath = Split-Path -Parent $MyInvocation.MyCommand.Definition;

Remove-Item $(Get-Item $(Join-Path $ToolsPath 'tokei.exe')) -EA 0;

# Only One Can Survive
if (Get-OSArchitectureWidth -Compare 32)
{
	Remove-Item $(Get-Item $(Join-Path $ToolsPath 'tokei-x86_64-pc-windows-msvc.exe'));
	Rename-Item -Path $(Get-Item $(Join-Path $ToolsPath 'tokei-i686-pc-windows-msvc.exe')) -NewName "tokei.exe";
}
elseif (Get-OSArchitectureWidth -Compare 64)
{
	Remove-Item $(Get-Item $(Join-Path $ToolsPath 'tokei-i686-pc-windows-msvc.exe'));
	Rename-Item -Path $(Get-Item $(Join-Path $ToolsPath 'tokei-x86_64-pc-windows-msvc.exe')) -NewName "tokei.exe";
};
tools\tokei-i686-pc-windows-msvc.exe
md5: 845680AA5D4BC43EE260C6020ABF418E | sha1: 67FC7EA943D4C8ADAC5CD76EB990C1148A370E24 | sha256: 7AF261B2E06EF2CBD47524E9302458C51739A878C4086FDBBDE9B7971AD397D7 | sha512: FF0C452AED9CBE6BB95ADD1666AB1ECF5CAB4B28B88AA46D08AA6D987D1BDA77AFC074D18FA078E8853F44372BD985006EBD2D84403831781250ADCAE2FCD5D1
tools\tokei-x86_64-pc-windows-msvc.exe
md5: C4322008B0C5CE1C3C86D5913F4C8D13 | sha1: 6D7E58792DA9D688921D96911E8F02FE1852D75F | sha256: 09467C7D678DD1C732BB04F132F77E0B616624B2DC06FBB75CCDE1982BF841EC | sha512: 79D05B9166290EF640277E523BD21FEA5DB2440777BB26247A0DD823C3F05ECB93F36BB4219CDEAB9EEC6D89891F47153234925DB9F61F4B46F7982D921F6A14

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Tokei 12.0.4 10 Tuesday, September 29, 2020 Approved
Tokei 12.0.3 7 Tuesday, September 29, 2020 Approved
Tokei 12.0.2 9 Tuesday, September 29, 2020 Approved
Tokei 12.0.1 14 Tuesday, September 29, 2020 Approved
Tokei 12.0.0 10 Tuesday, September 29, 2020 Approved
Tokei 11.2.1 10 Tuesday, September 29, 2020 Approved
Tokei 11.2.0 21 Tuesday, September 29, 2020 Approved
Tokei 11.1.1 14 Tuesday, September 29, 2020 Approved
Tokei 11.1.0 7 Tuesday, September 29, 2020 Approved

Discussion for the Tokei Package

Ground Rules:

  • This discussion is only about Tokei and the Tokei package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Tokei, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus