mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 16:30:13 +00:00
✨
This commit is contained in:
parent
44ef1c1a4a
commit
a134358144
5 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ import * as chalk from 'chalk';
|
|||
/**
|
||||
* Progress bar
|
||||
*/
|
||||
export default class ProgressBar extends ev.EventEmitter {
|
||||
export default class extends ev.EventEmitter {
|
||||
public max: number;
|
||||
public value: number;
|
||||
public text: string;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Logger from './logger';
|
||||
import { exec } from 'shelljs';
|
||||
|
||||
export default class DependencyInfo {
|
||||
export default class {
|
||||
logger: Logger;
|
||||
|
||||
constructor() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Logger from './logger';
|
||||
|
||||
export default class EnvironmentInfo {
|
||||
export default class {
|
||||
static show(): void {
|
||||
const env = process.env.NODE_ENV;
|
||||
let logger = new Logger('Env');
|
||||
|
|
|
@ -3,7 +3,7 @@ import * as chalk from 'chalk';
|
|||
const prominence = require('prominence');
|
||||
const git = require('git-last-commit');
|
||||
|
||||
export default class LastCommitInfo {
|
||||
export default class {
|
||||
static async show(): Promise<void> {
|
||||
let logger = new Logger('LastCommit');
|
||||
try {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as os from 'os';
|
||||
import Logger from './logger';
|
||||
|
||||
export default class MachineInfo {
|
||||
export default class {
|
||||
static show(): void {
|
||||
const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1);
|
||||
const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);
|
||||
|
|
Loading…
Reference in a new issue