Compare commits
No commits in common. "v0.3.2" and "v0.3.1" have entirely different histories.
5 changed files with 33 additions and 1272 deletions
|
@ -1,9 +1,3 @@
|
||||||
## [0.3.2](https://git.kjan.de/jank/project-cli/compare/v0.3.1...v0.3.2) (2025-06-19)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* Remove stupid toml ([a38aedc](https://git.kjan.de/jank/project-cli/commit/a38aedc2481930a9bc5ac4454e5b0b4b6fff5104))
|
|
||||||
|
|
||||||
## [0.3.1](https://git.kjan.de/jank/project-cli/compare/v0.3.0...v0.3.1) (2025-06-19)
|
## [0.3.1](https://git.kjan.de/jank/project-cli/compare/v0.3.0...v0.3.1) (2025-06-19)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import os from "os";
|
import os from "os";
|
||||||
|
import * as toml from "@std/toml";
|
||||||
|
|
||||||
export const configPath = os.homedir() + "/.config/project-cli/";
|
export const configPath = os.homedir() + "/.config/project-cli/";
|
||||||
|
|
||||||
|
@ -20,9 +21,9 @@ export function getProjects(): Project[] {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getConfiguration(): Configuration {
|
export function getConfiguration(): Configuration {
|
||||||
return JSON.parse(
|
return toml.parse(
|
||||||
fs.readFileSync(configPath + "config.json").toString(),
|
fs.readFileSync(configPath + "config.toml").toString(),
|
||||||
) as Configuration;
|
) as unknown as Configuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function addProject(project: Project) {
|
export function addProject(project: Project) {
|
||||||
|
@ -44,8 +45,10 @@ export function generateDefaultConfig() {
|
||||||
cloningCommand: "git clone %s %n",
|
cloningCommand: "git clone %s %n",
|
||||||
};
|
};
|
||||||
|
|
||||||
const configString = JSON.stringify(defaultConfig);
|
const configString = toml.stringify(
|
||||||
fs.writeFileSync(configPath + "config.json", configString);
|
defaultConfig as unknown as Record<string, unknown>,
|
||||||
|
);
|
||||||
|
fs.writeFileSync(configPath + "config.toml", configString);
|
||||||
|
|
||||||
const projects: Project[] = [];
|
const projects: Project[] = [];
|
||||||
saveProjects(projects);
|
saveProjects(projects);
|
||||||
|
|
19
package-lock.json
generated
19
package-lock.json
generated
|
@ -1,17 +1,18 @@
|
||||||
{
|
{
|
||||||
"name": "proj-cli",
|
"name": "proj-cli",
|
||||||
"version": "0.3.2",
|
"version": "0.3.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "proj-cli",
|
"name": "proj-cli",
|
||||||
"version": "0.3.2",
|
"version": "0.3.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@saithodev/semantic-release-gitea": "^2.1.0",
|
"@saithodev/semantic-release-gitea": "^2.1.0",
|
||||||
"@semantic-release/changelog": "^6.0.3",
|
"@semantic-release/changelog": "^6.0.3",
|
||||||
"@semantic-release/git": "^10.0.1",
|
"@semantic-release/git": "^10.0.1",
|
||||||
"@semantic-release/release-notes-generator": "^14.0.3",
|
"@semantic-release/release-notes-generator": "^14.0.3",
|
||||||
|
"@std/toml": "npm:@jsr/std__toml",
|
||||||
"@types/commander": "^2.12.5",
|
"@types/commander": "^2.12.5",
|
||||||
"@types/inquirer": "^9.0.8",
|
"@types/inquirer": "^9.0.8",
|
||||||
"commander": "^14.0.0",
|
"commander": "^14.0.0",
|
||||||
|
@ -492,6 +493,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@jsr/std__collections": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://npm.jsr.io/~/11/@jsr/std__collections/1.1.1.tgz",
|
||||||
|
"integrity": "sha512-bS4Y5f80IUeDUf+0BgVVWValgBeGcJ/UwFYTC5PBIJtrFqwEmU8IohDBwFLJILyUtiAB1jbJewl0K+REEQ9kQQ=="
|
||||||
|
},
|
||||||
"node_modules/@nodelib/fs.scandir": {
|
"node_modules/@nodelib/fs.scandir": {
|
||||||
"version": "2.1.5",
|
"version": "2.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
||||||
|
@ -1385,6 +1391,15 @@
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@std/toml": {
|
||||||
|
"name": "@jsr/std__toml",
|
||||||
|
"version": "1.0.8",
|
||||||
|
"resolved": "https://npm.jsr.io/~/11/@jsr/std__toml/1.0.8.tgz",
|
||||||
|
"integrity": "sha512-rnMoiySl30TrsdnfKcroYEWIBlmPvdNoA8fn/Njy3rsZR9C8k5nUeo9kWP/D/PhxYlUaYPtmQ31YhNqGpmEZ3Q==",
|
||||||
|
"dependencies": {
|
||||||
|
"@jsr/std__collections": "^1.1.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@szmarczak/http-timer": {
|
"node_modules/@szmarczak/http-timer": {
|
||||||
"version": "4.0.6",
|
"version": "4.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "proj-cli",
|
"name": "proj-cli",
|
||||||
"version": "0.3.2",
|
"version": "0.3.1",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -25,6 +25,7 @@
|
||||||
"@semantic-release/changelog": "^6.0.3",
|
"@semantic-release/changelog": "^6.0.3",
|
||||||
"@semantic-release/git": "^10.0.1",
|
"@semantic-release/git": "^10.0.1",
|
||||||
"@semantic-release/release-notes-generator": "^14.0.3",
|
"@semantic-release/release-notes-generator": "^14.0.3",
|
||||||
|
"@std/toml": "npm:@jsr/std__toml",
|
||||||
"@types/commander": "^2.12.5",
|
"@types/commander": "^2.12.5",
|
||||||
"@types/inquirer": "^9.0.8",
|
"@types/inquirer": "^9.0.8",
|
||||||
"commander": "^14.0.0",
|
"commander": "^14.0.0",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue