syncable-cli 0.37.1

A Rust-based CLI that analyzes code repositories and generates Infrastructure as Code configurations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import pkg from 'fs-extra';
const { copySync, removeSync, existsSync } = pkg;
import { resolve, dirname } from 'path';
import { fileURLToPath } from 'url';

const __dirname = dirname(fileURLToPath(import.meta.url));
const source = resolve(__dirname, '..', '..', 'skills');
const dest = resolve(__dirname, '..', 'skills');

if (!existsSync(source)) {
  console.error('Error: skills/ directory not found at', source);
  process.exit(1);
}

removeSync(dest);
copySync(source, dest);

console.log(`Copied skills from ${source} to ${dest}`);