This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const iso8601RegEx = /([0-9]{4})-([0-1][0-9])-([0-3][0-9])T([0-2][0-9]):([0-5][0-9])Z/ | |
function format2Digits(num) { | |
let asStr = '0' + num.toString() | |
return asStr.slice(-2) | |
} | |
function EntryTimestamp(node) { | |
this.node = node | |
this.date = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
enable_env() { | |
local env_name="$1" | |
local env_dir=".tox/${env_name}" | |
if [ ! -d "${env_dir}" ]; then | |
if [ ! -f tox.ini ]; then | |
echo 'No tox.ini found' >&2 |