Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// we always show english text (for non-muslims or those who don't know arabic)
// so that they can know the Truth and religion chosen by Allah for humans.
table.push([
meaning[chapter].aya[aya.$.index].$.index,
meaning[chapter].aya[aya.$.index].$.text
]);
});
}
else {
if (!arabic || arabic != 0) {
table.push([
colors.yellow(verses.$.index),
colors.yellow(verses.$.text)
]);
}
--verses.$.index;
table.push([
meaning[chapter].aya[verses.$.index].$.index,
meaning[chapter].aya[verses.$.index].$.text
]);
}
return table;
}
function printHttpTriggerTips(serverPort, serviceName, functionName, triggerName, endpoint, httpMethods, authType, domainName) {
const prefix = domainName ? `CustomDomain ${domainName}` : `HttpTrigger ${triggerName}`;
console.log(green(`${prefix} of ${serviceName}/${functionName} was registered`));
console.log('\turl: ' + yellow(`http://localhost:${serverPort}${endpoint}`));
console.log(`\tmethods: ` + yellow(httpMethods));
console.log(`\tauthType: ` + yellow(authType));
}
* in commandline
*/
if (argv.dev) {
branch = 'develop'
}
/**
* return if project path is not defined
*/
if (!argv._[1]) {
console.log(colors.red(`define project path \n${colors.bold.white('example:- adonis new yardstick')}`))
return
}
if (!check(argv)) {
console.log(colors.yellow(`\nInstall stopped. Please check error above.`))
return
}
const projectPath = argv._[1]
const fullPath = path.isAbsolute(projectPath) ? projectPath : path.join(process.cwd(), projectPath)
const spinner = new Spinner(`${colors.green('installing dependencies... %s')}`)
clone(repo, branch, projectPath)
.then(function () {
console.log(`${colors.green('cleaning project')}`)
return clean(fullPath)
})
.then(function () {
console.log(`${colors.green('setting up app key')}`)
return setKey(fullPath)
})
.then(function () {
private _warnUncommittedChanges(): void {
try {
if (VersionControl.hasUncommittedChanges()) {
console.log(
os.EOL +
colors.yellow(
'Warning: You have uncommitted changes, which do not trigger prompting for change ' +
'descriptions.'
)
);
}
} catch (error) {
console.log(`An error occurred when detecting uncommitted changes: ${error}`);
}
}
var id_has_address_assigned = function(id) {
debugaddress(colors.yellow('', id))
return new Promise(function(Success, Reject) {
client.get('id-' + id, function(err, reply) {
debugaddress(colors.cyan('', id, ':reply', reply))
if (reply === null) {
debugaddress(colors.red('Rejecting!'))
Reject();
} else {
debugaddress(colors.green('success!', reply))
Success(reply)
}
});
})
}
var color = require('colors');
exports.error = color.red('[Error] Opps.. here are error details: ');
exports.success = color.green('[Success] ');
exports.notFound = color.yellow('[404] ');
exports.doing = color.yellow('[Loading] ');
exports.wifi = {
scan: color.yellow('[scan wifi] '),
setup: color.yellow('[setup wifi] '),
start: color.green('[start wifi] '),
stop: color.red('[stop wifi] '),
list: color.yellow('[list wifi] ')
}
var color = require('colors');
exports.error = color.red('[Error] Opps.. here are error details: ');
exports.success = color.green('[Success] ');
exports.notFound = color.yellow('[404] ');
exports.doing = color.yellow('[Loading] ');
exports.wifi = {
scan: color.yellow('[scan wifi] '),
setup: color.yellow('[setup wifi] '),
start: color.green('[start wifi] '),
stop: color.red('[stop wifi] '),
list: color.yellow('[list wifi] ')
}