cccc

(★ 66)

A tool/library for measurement of "C"ognitive "C"omplexity and "C"yclomatic "C"omplexity

File Explorer

  • .gitignore
  • .octocov.complexity.yml
  • .octocov.yml
  • BENCHMARK.md
  • Cargo.lock
  • Cargo.toml
  • cccc.toml
  • LICENSE
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

line

View Details ▼

Manage lines.
Accessed in configuration mode.

line vty 0 15

Configure lines from 0 to 15:

line

Read input:

🔍

cargo build

View Details ▼

Compile a local package and all of its dependencies.

cargo {{[b|build]}}

Build the package or packages defined by the `Cargo.toml` manifest file in the local path:

cargo {{[b|build]}} {{[-r|--release]}}

Build artifacts in release mode, with optimizations:

cargo {{[b|build]}} --locked

Require that `Cargo.lock` is up to date:

🔍

elif

View Details ▼

This shell keyword is used in combination with `if` and `else` to define a code branch.

tldr if

View documentation for `if` command:

🔍

eval

View Details ▼

Execute arguments as a single command in the current shell and return its result.

eval "{{echo foo}}"

Call `echo` with the "foo" argument:

eval "{{foo=bar}}"

Set a variable in the current shell:

🔍

func

View Details ▼

Azure Functions Core Tools: develop and test Azure Functions locally.
Local functions can connect to live Azure services, and can deploy a function app to an Azure subscription.

func init {{project}}

Create a new functions project:

func new

Create a new function:

func start

Run functions locally:

🔍

git ls-files

View Details ▼

Show information about files in the index and the working tree.

git ls-files {{[-d|--deleted]}}

Show deleted files:

git ls-files {{[-m|--modified]}}

Show modified and deleted files:

git ls-files {{[-o|--others]}}

Show ignored and untracked files:

🔍

git status

View Details ▼

Show the changes to files in a Git repository.
List changed, added, and deleted files compared to the currently checked-out commit.

git status

Show untracked and changed files which are not yet added for commit:

git status {{[-s|--short]}}

Give output in short format:

git status {{[-sb|--short --branch]}}

Show output in short format along with branch info:

🔍

next

View Details ▼

React framework that uses server-side rendering for building optimized web applications.

next dev

Start the current application in development mode:

next dev {{[-p|--port]}} {{port}}

Start the current application and listen on a specific port:

next build

Build the current application optimized for production:

🔍

php

View Details ▼

PHP command-line interface.

php {{path/to/file}}

Parse and execute a PHP script:

php {{[-l|--syntax-check]}} {{path/to/file}}

Check syntax on (i.e. [l]int) a PHP script:

php {{[-a|--interactive]}}

Run PHP inter[a]ctively:

🔍

scc

View Details ▼

Count lines of code. Written in Go.

scc

Print lines of code in the current directory:

scc {{path/to/directory}}

Print lines of code in the target directory:

scc --by-file

Display output for every file:

🔍

select

View Details ▼

Bash builtin construct for creating menus.

select {{word}} in {{apple orange pear banana}}; do echo ${{word}}; done

Create a menu out of individual words:

select {{line}} in $({{command}}); do echo ${{line}}; done

Create a menu from the output of another command:

PS3="{{Select a file: }}"; select {{file}} in *; do echo ${{file}}; done

Specify the prompt string for `select` and create a menu for picking a file or folder from the current directory:

🔍

sum

View Details ▼

Compute checksums and the number of blocks for a file.
A predecessor to the more modern `cksum`.

sum {{path/to/file}}

Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:

sum {{[-s|--sysv]}} {{path/to/file}}

Compute a checksum with System V-compatible algorithm and 512-byte blocks:

🔍

until

View Details ▼

Simple shell loop that repeats until it receives zero as return value.

until {{command}}; do :; done

Execute a command until it succeeds:

until ssh {{username}}@{{host}}; do sleep {{2}}; done

Try to connect to an SSH host until gracefully disconnected:

until systemctl is-active {{[-q|--quiet]}} {{nginx}}; do {{echo "Waiting..."}}; sleep 1; done; {{echo "Launched!"}}

Wait for a systemd service to be active:

🔍

where

View Details ▼

Report all known instances of a command.
It could be an executable in the `$PATH` environment variable, an alias, or a shell builtin.

where {{command}}

Find all instances of a command:

tldr where-object

View the documentation of the equivalent PowerShell command:

where {{file_pattern}}

Display the location of file pattern:

🔍

last

View Details ▼

View the last logged in users.

last

View last login information (e.g., username, terminal, boot time, kernel) of all users as read from `/var/log/wtmp`:

last {{username}}

List login information of a specific user:

last {{[-n|--limit]}} {{login_count}}

Specify how many of the last logins to show:

// repository documentation