nano-staged
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -68,2 +68,3 @@ import { resolve } from 'path' | ||
let notMatchingPatterns = [] | ||
let pad = output.size | ||
@@ -78,3 +79,3 @@ for (let stringCmd of toArray(cmds)) { | ||
if (skiped) { | ||
log(` ${pico.bold(pico.gray(pattern.padEnd(output.size)))} ${stringCmd}`) | ||
log(` ${pico.bold(pico.gray(pattern.padEnd(pad)))} | SKIPPED | ${stringCmd}`) | ||
continue | ||
@@ -87,5 +88,5 @@ } | ||
log(` ${pico.bold(pico.green(pattern.padEnd(output.size)))} ${stringCmd}`) | ||
log(` ${pico.bold(pico.green(pattern.padEnd(pad)))} | SUCCESS | ${stringCmd}`) | ||
} catch (err) { | ||
log(` ${pico.bold(pico.red(pattern.padEnd(output.size)))} ${stringCmd}`) | ||
log(` ${pico.bold(pico.red(pattern.padEnd(pad)))} | FAILED | ${stringCmd}`) | ||
output.errors.push(pico.red(`${stringCmd}:\n`) + err) | ||
@@ -98,4 +99,4 @@ skiped = true | ||
` ${pico.bold( | ||
pico.yellow(pattern.padEnd(output.size)) | ||
)} no staged files matching the pattern were found.` | ||
pico.yellow(pattern.padEnd(pad)) | ||
)} | SKIPPED | no files matching the pattern were found.` | ||
) | ||
@@ -102,0 +103,0 @@ notMatchingPatterns.push(pattern) |
{ | ||
"name": "nano-staged", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Tool to run commands only on git staged files", | ||
@@ -5,0 +5,0 @@ "author": "Usman Yunusov <usman.iunusov@gmail.com>", |
33267
1092