'use strict';
|
|
import { executeGitCommand } from '../commands';
|
|
import { Command, command, Commands } from './common';
|
|
|
|
export interface ShowQuickRepoStatusCommandArgs {
|
|
repoPath?: string;
|
|
}
|
|
|
|
@command()
|
|
export class ShowQuickRepoStatusCommand extends Command {
|
|
constructor() {
|
|
super(Commands.ShowQuickRepoStatus);
|
|
}
|
|
|
|
async execute(args?: ShowQuickRepoStatusCommandArgs) {
|
|
return executeGitCommand({
|
|
command: 'status',
|
|
state: {
|
|
repo: args?.repoPath,
|
|
},
|
|
});
|
|
}
|
|
}
|