Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions bin/ncu-ci.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node

import yargs from 'yargs';
import clipboardy from 'clipboardy';

import {
JobParser,
Expand Down Expand Up @@ -222,11 +221,6 @@ const args = yargs(hideBin(process.argv))
handler
})
.demandCommand(1, 'must provide a valid command')
.option('copy', {
describe: 'Write the results as markdown to clipboard',
default: false,
type: 'boolean'
})
.option('skip-more-than', {
describe: 'Skip jobs that fail more than <limit> builds, when --stat is true, default to 10.',
type: 'number',
Expand Down Expand Up @@ -397,7 +391,7 @@ class CICommand {
this.json = this.json.concat(json);
}

if ((argv.copy || argv.markdown) && !argv.stats) {
if (argv.markdown && !argv.stats) {
this.markdown += build.formatAsMarkdown();
}
}
Expand All @@ -408,16 +402,6 @@ class CICommand {
async serialize() {
const { argv, cli } = this;

if (argv.copy) {
if (this.markdown) {
clipboardy.writeSync(this.markdown);
cli.separator('');
cli.log('Written markdown to clipboard');
} else {
cli.error('No markdown generated');
}
}

if (argv.markdown) {
if (this.markdown) {
writeFile(argv.markdown, this.markdown);
Expand Down Expand Up @@ -483,7 +467,7 @@ class WalkCommand extends CICommand {
cli.log('');
aggregator.display();

if (argv.markdown || argv.copy) {
if (argv.markdown) {
this.markdown = aggregator.formatAsMarkdown();
}
}
Expand Down Expand Up @@ -564,7 +548,7 @@ class DailyCommand extends CICommand {
cli.log('');
aggregator.display();

if (argv.markdown || argv.copy) {
if (argv.markdown) {
this.markdown = aggregator.formatAsMarkdown();
}
}
Expand Down
2 changes: 0 additions & 2 deletions docs/ncu-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ Commands:

Options:
--version Show version number [boolean]
--copy Write the results as markdown to clipboard
[boolean] [default: false]
--nobuild If running cigtm, whether or not jobid is citgm-nobuild.
[boolean] [default: false]
--json <path> Write the results as json to <path> [string]
Expand Down
Loading
Loading