Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cmdt

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmdt

Command-line tool for testing command-line tools

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
54
decreased by-15.62%
Maintainers
1
Weekly downloads
 
Created
Source
Avatar

Build Status Dependencies Status Published Version
npm Badge

Cmdt

Cmdt is a command-line tool for testing command-line tools.

This is handy for testing a command execution result by checking its exit code and output.

Installation

npm install -g cmdt

Usage

Run tests on specified .cmdt files:

cmdt run <file1>.cmdt <file2>.cmdt

Run all .cmdt test files contained in a directory:

cmdt run <dir>

Debug exit code and output of failing tests:

cmdt run --debug <file>.cmdt <dir>

Test File

Set test command, expected exit code and/or output regular expression in a .cmdt file:

command: whoami
exitcode: 0
output: someuser

command: time
exitcode: 0
output: real.+user.+sys.+

command: unknowncommand
exitcode: 1
output: ^some error$

Keywords

FAQs

Package last updated on 14 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc