ng-container(*ngIf='!argvMode')
    .form-group
        label(translate) Command line
        .input-group
            .input-group-prepend
                a.input-group-text(
                    (click)='switchToArgv()',
                    ngbTooltip='Split into unescaped arguments',
                    href='#'
                )
                    i.fas.fa-fw.fa-caret-right
            input.form-control.text-monospace(
                [(ngModel)]='command',
                (ngModelChange)='parseCommand()'
            )

ng-container(*ngIf='argvMode')
    .form-group
        label(translate) Program
        .input-group
            .input-group-prepend
                a.input-group-text(
                    (click)='switchToCommand()',
                    ngbTooltip='Combine into a single escaped command',
                    href='#'
                )
                    i.fas.fa-fw.fa-caret-down
            input.form-control.text-monospace(
                type='text',
                [(ngModel)]='_model.command',
            )

    .form-group
        label(translate) Arguments
        .input-group(
            *ngFor='let arg of _model.args; index as i; trackBy: trackByIndex',
        )
            input.form-control.text-monospace(
                type='text',
                [(ngModel)]='_model.args[i]',
            )
            .input-group-append
                button.btn.btn-secondary((click)='_model.args.splice(i, 1)')
                    i.fas.fa-fw.fa-trash

        .mt-2
            button.btn.btn-secondary((click)='_model.args.push("")')
                i.fas.fa-plus.mr-2
                span(translate) Add
