import { profile } from '../../lib/telemetry' ; import type { argsT } from '../shared-commands/submit' ; import { submitAction } from '../../actions/submit/submit' ; export { aliases , builder , command } from '../shared-commands/submit' ; export const description = 'Idempotently force push all downstack branches (including the current one) to GitHub, creating or updating distinct pull requests for each.' ; export const canonical = 'downstack submit' ; export const handler = async ( argv ) : Promise < void > => { await profile ( argv , canonical , async ( ) => { await submitAction ( { scope : 'DOWNSTACK' , editPRFieldsInline : argv . edit , createNewPRsAsDraft : argv . draft , dryRun : argv [ 'dry-run' ] , updateOnly : argv [ 'update-only' ] , } ) ; } ) ; } ;