UNPKG

@stoar/cli

Version:

CLI tool for STOAR - decentralized file storage on Arweave

17 lines 734 B
import { Command } from 'commander'; import chalk from 'chalk'; export const estimateCommand = new Command('estimate') .description('Estimate storage costs for files') .argument('[file]', 'File to estimate costs for') .option('-s, --size <bytes>', 'Estimate cost for specific size in bytes') .action((file, options) => { console.log(chalk.yellow('Estimate command coming soon!')); if (file) { console.log(`This will estimate storage costs for: ${file}`); } else if (options.size) { console.log(`This will estimate storage costs for ${options.size} bytes`); } console.log('This will provide cost estimates for storing files on Arweave.'); }); //# sourceMappingURL=estimate.js.map