import yargs from 'yargs' ; import { validate } from '../../actions/validate' ; import { profile } from '../../lib/telemetry' ; const args = { } as const ; type argsT = yargs . Arguments < yargs . InferredOptionTypes < typeof args > > ; export const command = 'validate' ; export const canonical = 'downstack validate' ; export const description = "Validate that Graphite's stack metadata for all downstack branches matches the branch relationships stored in git." ; export const builder = args ; export const handler = async ( argv ) : Promise < void > => { return profile ( argv , canonical , async ( ) => { validate ( 'DOWNSTACK' ) ; } ) ; } ;