fix(core): update

This commit is contained in:
2021-09-30 11:14:43 +02:00
parent f930f3a6a7
commit 08ead4258f
7 changed files with 27178 additions and 1271 deletions

View File

@ -1,20 +0,0 @@
/**
* smartanalytics:
* We count executions of this tool to keep track which of our tools are really used.
* This insight is used to plan spending our limited resources for improving them.
* Any submitted analytics data is fully anonymized (no Ips or any other personal information is tracked).
* Feel free to dig into the smartanalytics package, if you are interested in how it works.
* Our privacy policy can be found here: https://lossless.gmbh/privacy.html
* The privacy policy is also linked in the readme, so we hope this behaviour does not come as a surprise to you.
* Have a nice day and regards
* Your Open Source team at Lossless GmbH :)
*/
import * as smartanalytics from '@pushrocks/smartanalytics';
const npmdockerAnalytics = new smartanalytics.Analytics({
apiEndPoint: 'https://pubapi.lossless.one',
appName: 'tsdocker',
projectId: 'gitzone'
});
npmdockerAnalytics.recordEvent('npmtoolexecution', {
somedata: 'somedata'
});

View File

@ -1,4 +1,3 @@
import './analytics';
import * as plugins from './tsdocker.plugins';
import * as cli from './tsdocker.cli';

View File

@ -11,7 +11,7 @@ const tsdockerCli = new plugins.smartcli.Smartcli();
export let run = () => {
tsdockerCli.standardTask().subscribe(async argvArg => {
let configArg = await ConfigModule.run().then(DockerModule.run);
const configArg = await ConfigModule.run().then(DockerModule.run);
if (configArg.exitCode === 0) {
logger.log('success', 'container ended all right!');
} else {
@ -68,7 +68,7 @@ export let run = () => {
});
logger.log('ok', 'Starting speedtest');
await smartshellInstance.exec(
`docker pull tianon/speedtest && docker run --rm tianon/speedtest`
`docker pull tianon/speedtest && docker run --rm tianon/speedtest --accept-license --accept-gdpr`
);
});

View File

@ -6,7 +6,7 @@ export interface IConfig {
command: string;
dockerSock: boolean;
exitCode?: number;
keyValueObject: any[];
keyValueObject: {[key: string]: any};
}
const getQenvKeyValueObject = async () => {