import { Settings } from '../interfaces/settings' ; import { BaseCommand } from './BaseCommand' ; export class Pipeline { private commands : BaseCommand [ ] ; constructor ( private settings , ... commands ) { this . commands = commands ; } public execute ( ) { for ( const command of this . commands ) { command . execute ( this . settings ) ; } } }