Skip to content
Open
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
14 changes: 6 additions & 8 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import {hideBin} from 'yargs/helpers';
import yargs from 'yargs';
import * as process from 'process';
import {Logic} from './Logic';
import {downloadSecrets} from './commands/download';
import {checkDiff} from './commands/checkDiff';
import {applyChanges} from './commands/apply';


(async () => {
Expand Down Expand Up @@ -32,7 +34,7 @@ import {Logic} from './Logic';
})
.strict();
},
Logic.downloadSecrets.bind(this)
downloadSecrets
)
.command('checkDiff [instance] [path]', 'display diff about local and remote changes', (yargs) => {
return yargs
Expand All @@ -46,7 +48,7 @@ import {Logic} from './Logic';
type: 'string',
demandOption: true
});
}, Logic.checkDiff.bind(this))
}, checkDiff)
.command('apply [instance] [path]', 'apply local changes to remote vault', (yargs) => {
return yargs
.positional('instance', {
Expand All @@ -59,7 +61,7 @@ import {Logic} from './Logic';
type: 'string',
demandOption: true
});
}, Logic.applyChanges.bind(this))
}, applyChanges)


.option('verbose', {
Expand All @@ -73,7 +75,3 @@ import {Logic} from './Logic';


})();




259 changes: 0 additions & 259 deletions src/Helpers.ts

This file was deleted.

Loading
Loading