Skip to content

Commit

Permalink
fix: write target to file for argo
Browse files Browse the repository at this point in the history
  • Loading branch information
MDavidson17 committed Jan 25, 2024
1 parent cd37d6e commit 287b92b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/commands/path/path.generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { StacCollection, StacItem } from 'stac-ts';

import { CliInfo } from '../../cli.info.js';
import { logger } from '../../log.js';
import { isArgo } from '../../utils/argo.js';
import { slugify } from '../../utils/slugify.js';
import { config, createTiff, registerCli, verbose } from '../common.js';
import { dataCategories, regions } from './path.constants.js';
Expand Down Expand Up @@ -66,7 +67,11 @@ export const commandGeneratePath = command({

const target = generatePath(metadata);
logger.info({ duration: performance.now() - startTime, target: target }, 'GeneratePath:Done');
return target;
if (isArgo()) {
// Path to where the target is located
await fsa.write('/tmp/generate-path/target', target);
logger.info({ location: '/tmp/generate-path/target', target: target }, 'GeneratePath:Written');
}
},
});

Expand Down

0 comments on commit 287b92b

Please sign in to comment.