func LSCommand(runtime *program.SubRuntime) (retval int, err string) {
	exitCodeFlag := runtime.Flag
	root := runtime.Root

	// find all the repos
	repos := repos.Repos(root, runtime.For)

	// and print them
	for _, repo := range repos {
		fmt.Println(repo)
	}

	// if we have --exit-code set and no results
	// we need to exit with an error code
	if exitCodeFlag && len(repos) == 0 {
		retval = constants.ErrorCodeCustom
	}

	return
}
// LSCommand is the entry point for the ls command
LSCommand is the entry point for the ls command
// LSCommand is the entry point for the ls command
func LSCommand(runtime *program.SubRuntime) (retval int, err string) {
	exitCodeFlag := runtime.Flag
	root := runtime.Root
	repos := repos.Repos(root, runtime.For)
	for _, repo := range repos {
		fmt.Println(repo)
	}
	if exitCodeFlag && len(repos) == 0 {
		retval = constants.ErrorCodeCustom
	}
	return
}
func LSCommand ( runtime * program . SubRuntime ) ( retval int , err string ) { exitCodeFlag := runtime . Flag root := runtime . Root repos := repos . Repos ( root , runtime . For ) for _ , repo := range repos { fmt . Println ( repo ) } if exitCodeFlag && len ( repos ) == 0 { retval = constants . ErrorCodeCustom } return }
LSCommand is the entry point for the ls command
LSCommand is the entry point for the ls command
// find all the repos // and print them // if we have --exit-code set and no results // we need to exit with an error code