import { IGitCommitViewDetailsCommandHandler } from '../../commandHandlers/types' ; import { CommitDetails } from '../../common/types' ; import { BaseCommitCommand } from '../baseCommitCommand' ; export class ViewDetailsCommand extends BaseCommitCommand { constructor ( commit , private handler ) { super ( commit ) ; this . setTitle ( '$(eye) View Change log' ) ; } public async preExecute ( ) { return false ; } public execute ( ) { this . handler . viewDetails ( this . data ) ; } }