Compare commits

...

14 commits

Author SHA1 Message Date
semantic-release-bot
1efb9c5227 chore(release): 0.4.0 [skip ci]
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-20)

### Features

* Add folder execution ([703db75](703db757bc))
* add version argument ([618e00b](618e00b677))

### Bug Fixes

* Fix cli command ([7f5c721](7f5c72143a))
* fix init script ([de3f5e6](de3f5e697c))
* Merge ([3f6eab9](3f6eab94c1))
* Remove stupid tag ([4cb16be](4cb16be7fa))
* test ([623ca27](623ca27213))
* Try different cli script ([ccf3d39](ccf3d391dd))

### Chores

* Clean up imports ([50ecd8c](50ecd8ce86))
* **release:** 0.4.0 [skip ci] ([b6f77ae](b6f77aed80))
* **release:** 0.4.0 [skip ci] ([16cb633](16cb633fe1))
* **release:** 0.4.0 [skip ci] ([506fc04](506fc04054))
* **release:** 0.4.0 [skip ci] ([b9bd05e](b9bd05e406))
2025-06-20 05:46:21 +00:00
623ca27213
fix: test
Some checks failed
Release / Release (push) Failing after 29s
2025-06-20 07:45:34 +02:00
semantic-release-bot
b6f77aed80 chore(release): 0.4.0 [skip ci]
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-20)

### Features

* Add folder execution ([703db75](703db757bc))
* add version argument ([618e00b](618e00b677))

### Bug Fixes

* Fix cli command ([7f5c721](7f5c72143a))
* fix init script ([de3f5e6](de3f5e697c))
* Merge ([3f6eab9](3f6eab94c1))
* Remove stupid tag ([4cb16be](4cb16be7fa))
* Try different cli script ([ccf3d39](ccf3d391dd))

### Chores

* Clean up imports ([50ecd8c](50ecd8ce86))
* **release:** 0.4.0 [skip ci] ([16cb633](16cb633fe1))
* **release:** 0.4.0 [skip ci] ([506fc04](506fc04054))
* **release:** 0.4.0 [skip ci] ([b9bd05e](b9bd05e406))
2025-06-20 05:38:04 +00:00
4cb16be7fa
fix: Remove stupid tag
All checks were successful
Release / Release (push) Successful in 29s
2025-06-20 07:37:18 +02:00
semantic-release-bot
16cb633fe1 chore(release): 0.4.0 [skip ci]
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-20)

### Features

* Add folder execution ([703db75](703db757bc))
* add version argument ([618e00b](618e00b677))

### Bug Fixes

* Fix cli command ([7f5c721](7f5c72143a))
* fix init script ([de3f5e6](de3f5e697c))
* Merge ([3f6eab9](3f6eab94c1))
* Try different cli script ([ccf3d39](ccf3d391dd))

### Chores

* Clean up imports ([50ecd8c](50ecd8ce86))
* **release:** 0.4.0 [skip ci] ([506fc04](506fc04054))
* **release:** 0.4.0 [skip ci] ([b9bd05e](b9bd05e406))
2025-06-20 05:35:41 +00:00
ccf3d391dd
fix: Try different cli script
Some checks failed
Release / Release (push) Failing after 1m16s
2025-06-20 07:34:06 +02:00
semantic-release-bot
506fc04054 chore(release): 0.4.0 [skip ci]
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-19)

### Features

* Add folder execution ([703db75](703db757bc))
* add version argument ([618e00b](618e00b677))

### Bug Fixes

* Fix cli command ([7f5c721](7f5c72143a))
* fix init script ([de3f5e6](de3f5e697c))
* Merge ([3f6eab9](3f6eab94c1))

### Chores

* Clean up imports ([50ecd8c](50ecd8ce86))
* **release:** 0.4.0 [skip ci] ([b9bd05e](b9bd05e406))
2025-06-19 17:22:33 +00:00
7f5c72143a
fix: Fix cli command
All checks were successful
Release / Release (push) Successful in 26s
2025-06-19 19:21:43 +02:00
semantic-release-bot
b9bd05e406 chore(release): 0.4.0 [skip ci]
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-19)

### Features

* Add folder execution ([703db75](703db757bc))
* add version argument ([618e00b](618e00b677))

### Bug Fixes

* fix init script ([de3f5e6](de3f5e697c))
* Merge ([3f6eab9](3f6eab94c1))

### Chores

* Clean up imports ([50ecd8c](50ecd8ce86))
2025-06-19 15:25:17 +00:00
3f6eab94c1
fix: Merge
Some checks failed
Release / Release (push) Failing after 28s
2025-06-19 17:23:47 +02:00
de3f5e697c
fix: fix init script 2025-06-19 17:20:25 +02:00
703db757bc
feat: Add folder execution
All checks were successful
Label PRs based on size / Check PR size (pull_request) Successful in 5s
2025-06-19 17:14:25 +02:00
50ecd8ce86
chore: Clean up imports
All checks were successful
Label PRs based on size / Check PR size (pull_request) Successful in 6s
2025-06-19 17:06:46 +02:00
618e00b677
feat: add version argument 2025-06-19 17:05:59 +02:00
5 changed files with 120 additions and 20 deletions

View file

@ -1,3 +1,103 @@
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-20)
### Features
* Add folder execution ([703db75](https://git.kjan.de/jank/project-cli/commit/703db757bc11edd233dca293528b0fad85365d5f))
* add version argument ([618e00b](https://git.kjan.de/jank/project-cli/commit/618e00b677b21dbb8a143a2cd8c189e3aa672c89))
### Bug Fixes
* Fix cli command ([7f5c721](https://git.kjan.de/jank/project-cli/commit/7f5c72143a6b4265fe0f1ac841cf12f5105a62aa))
* fix init script ([de3f5e6](https://git.kjan.de/jank/project-cli/commit/de3f5e697c8170888180e606991d1aaa9c6c3738))
* Merge ([3f6eab9](https://git.kjan.de/jank/project-cli/commit/3f6eab94c1b7b568228886f63e2529ad166bf316))
* Remove stupid tag ([4cb16be](https://git.kjan.de/jank/project-cli/commit/4cb16be7fa93f9a1507f070fb0b8eaee7cf6947a))
* test ([623ca27](https://git.kjan.de/jank/project-cli/commit/623ca27213c1902505eff61ec0b05993dc352dc2))
* Try different cli script ([ccf3d39](https://git.kjan.de/jank/project-cli/commit/ccf3d391dd969aeb4d181887c568d6b5ef4864bd))
### Chores
* Clean up imports ([50ecd8c](https://git.kjan.de/jank/project-cli/commit/50ecd8ce863e5996e47abb4fbad5f35e324ccc34))
* **release:** 0.4.0 [skip ci] ([b6f77ae](https://git.kjan.de/jank/project-cli/commit/b6f77aed80069fb439cee2ec97a5b061119b9c49))
* **release:** 0.4.0 [skip ci] ([16cb633](https://git.kjan.de/jank/project-cli/commit/16cb633fe16274131d5bb7ccbbc6626af6672901))
* **release:** 0.4.0 [skip ci] ([506fc04](https://git.kjan.de/jank/project-cli/commit/506fc040545f331ce369ae5d634f5e8247eec218))
* **release:** 0.4.0 [skip ci] ([b9bd05e](https://git.kjan.de/jank/project-cli/commit/b9bd05e4068be418975da981db32e69e97feb550))
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-20)
### Features
* Add folder execution ([703db75](https://git.kjan.de/jank/project-cli/commit/703db757bc11edd233dca293528b0fad85365d5f))
* add version argument ([618e00b](https://git.kjan.de/jank/project-cli/commit/618e00b677b21dbb8a143a2cd8c189e3aa672c89))
### Bug Fixes
* Fix cli command ([7f5c721](https://git.kjan.de/jank/project-cli/commit/7f5c72143a6b4265fe0f1ac841cf12f5105a62aa))
* fix init script ([de3f5e6](https://git.kjan.de/jank/project-cli/commit/de3f5e697c8170888180e606991d1aaa9c6c3738))
* Merge ([3f6eab9](https://git.kjan.de/jank/project-cli/commit/3f6eab94c1b7b568228886f63e2529ad166bf316))
* Remove stupid tag ([4cb16be](https://git.kjan.de/jank/project-cli/commit/4cb16be7fa93f9a1507f070fb0b8eaee7cf6947a))
* Try different cli script ([ccf3d39](https://git.kjan.de/jank/project-cli/commit/ccf3d391dd969aeb4d181887c568d6b5ef4864bd))
### Chores
* Clean up imports ([50ecd8c](https://git.kjan.de/jank/project-cli/commit/50ecd8ce863e5996e47abb4fbad5f35e324ccc34))
* **release:** 0.4.0 [skip ci] ([16cb633](https://git.kjan.de/jank/project-cli/commit/16cb633fe16274131d5bb7ccbbc6626af6672901))
* **release:** 0.4.0 [skip ci] ([506fc04](https://git.kjan.de/jank/project-cli/commit/506fc040545f331ce369ae5d634f5e8247eec218))
* **release:** 0.4.0 [skip ci] ([b9bd05e](https://git.kjan.de/jank/project-cli/commit/b9bd05e4068be418975da981db32e69e97feb550))
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-20)
### Features
* Add folder execution ([703db75](https://git.kjan.de/jank/project-cli/commit/703db757bc11edd233dca293528b0fad85365d5f))
* add version argument ([618e00b](https://git.kjan.de/jank/project-cli/commit/618e00b677b21dbb8a143a2cd8c189e3aa672c89))
### Bug Fixes
* Fix cli command ([7f5c721](https://git.kjan.de/jank/project-cli/commit/7f5c72143a6b4265fe0f1ac841cf12f5105a62aa))
* fix init script ([de3f5e6](https://git.kjan.de/jank/project-cli/commit/de3f5e697c8170888180e606991d1aaa9c6c3738))
* Merge ([3f6eab9](https://git.kjan.de/jank/project-cli/commit/3f6eab94c1b7b568228886f63e2529ad166bf316))
* Try different cli script ([ccf3d39](https://git.kjan.de/jank/project-cli/commit/ccf3d391dd969aeb4d181887c568d6b5ef4864bd))
### Chores
* Clean up imports ([50ecd8c](https://git.kjan.de/jank/project-cli/commit/50ecd8ce863e5996e47abb4fbad5f35e324ccc34))
* **release:** 0.4.0 [skip ci] ([506fc04](https://git.kjan.de/jank/project-cli/commit/506fc040545f331ce369ae5d634f5e8247eec218))
* **release:** 0.4.0 [skip ci] ([b9bd05e](https://git.kjan.de/jank/project-cli/commit/b9bd05e4068be418975da981db32e69e97feb550))
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-19)
### Features
* Add folder execution ([703db75](https://git.kjan.de/jank/project-cli/commit/703db757bc11edd233dca293528b0fad85365d5f))
* add version argument ([618e00b](https://git.kjan.de/jank/project-cli/commit/618e00b677b21dbb8a143a2cd8c189e3aa672c89))
### Bug Fixes
* Fix cli command ([7f5c721](https://git.kjan.de/jank/project-cli/commit/7f5c72143a6b4265fe0f1ac841cf12f5105a62aa))
* fix init script ([de3f5e6](https://git.kjan.de/jank/project-cli/commit/de3f5e697c8170888180e606991d1aaa9c6c3738))
* Merge ([3f6eab9](https://git.kjan.de/jank/project-cli/commit/3f6eab94c1b7b568228886f63e2529ad166bf316))
### Chores
* Clean up imports ([50ecd8c](https://git.kjan.de/jank/project-cli/commit/50ecd8ce863e5996e47abb4fbad5f35e324ccc34))
* **release:** 0.4.0 [skip ci] ([b9bd05e](https://git.kjan.de/jank/project-cli/commit/b9bd05e4068be418975da981db32e69e97feb550))
## [0.4.0](https://git.kjan.de/jank/project-cli/compare/v0.3.3...v0.4.0) (2025-06-19)
### Features
* Add folder execution ([703db75](https://git.kjan.de/jank/project-cli/commit/703db757bc11edd233dca293528b0fad85365d5f))
* add version argument ([618e00b](https://git.kjan.de/jank/project-cli/commit/618e00b677b21dbb8a143a2cd8c189e3aa672c89))
### Bug Fixes
* fix init script ([de3f5e6](https://git.kjan.de/jank/project-cli/commit/de3f5e697c8170888180e606991d1aaa9c6c3738))
* Merge ([3f6eab9](https://git.kjan.de/jank/project-cli/commit/3f6eab94c1b7b568228886f63e2529ad166bf316))
### Chores
* Clean up imports ([50ecd8c](https://git.kjan.de/jank/project-cli/commit/50ecd8ce863e5996e47abb4fbad5f35e324ccc34))
## [0.3.3](https://git.kjan.de/jank/project-cli/compare/v0.3.2...v0.3.3) (2025-06-19)
### Bug Fixes

0
a Normal file
View file

View file

@ -14,11 +14,15 @@ import {
import { execSync } from "child_process";
import { program } from "commander";
import packageJson from "./package.json";
export const VERSION = packageJson.version;
const CLI_NAME = "pcli";
program
.name("project-cli")
.description("A cli for managing projects")
.version(VERSION)
.action(async () => {
if (!fs.existsSync(configPath + "config.json")) {
const createConfig = await confirm({
@ -90,29 +94,25 @@ program
choices: getProjects().map((project: Project) => project.name),
});
process.chdir(getConfiguration().projectsDirectory + "/" + pickedProject);
console.log(
"__EXEC__ cd " +
getConfiguration().projectsDirectory +
"/" +
pickedProject,
);
console.log(getProjects());
});
program.command("init").action(() => {
console.log(`${CLI_NAME}() {
local output
output=$(command ${CLI_NAME} "$@")
local exit_code=$?
if [ $exit_code -eq 0 ]; then
echo "$output" | while IFS= read -r line; do
command ${CLI_NAME} "$@" | while IFS= read -r line; do
if [[ $line == __EXEC__* ]]; then
eval "\${line#__EXEC__}"
else
echo "$line"
fi
done
else
echo "$output" >&2
return $exit_code
fi
}`);
});

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "proj-cli",
"version": "0.3.3",
"version": "0.4.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "proj-cli",
"version": "0.3.3",
"version": "0.4.0",
"dependencies": {
"@saithodev/semantic-release-gitea": "^2.1.0",
"@semantic-release/changelog": "^6.0.3",

View file

@ -1,6 +1,6 @@
{
"name": "proj-cli",
"version": "0.3.3",
"version": "0.4.0",
"module": "index.ts",
"type": "module",
"bin": {