taste 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -35,12 +35,18 @@ Pull taste packages from storage to your project:
|
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
npx taste pull [package-name]
|
|
38
|
-
npx taste pull --all
|
|
39
|
-
npx taste pull -g [package-name]
|
|
40
|
-
npx taste pull --remote
|
|
41
|
-
npx taste pull --
|
|
38
|
+
npx taste pull --all # Pull all packages
|
|
39
|
+
npx taste pull -g [package-name] # Pull from global storage
|
|
40
|
+
npx taste pull --remote username/package # Pull from remote (with namespace)
|
|
41
|
+
npx taste pull --remote orgname/package # Pull from organization
|
|
42
|
+
npx taste pull --overwrite # Overwrite instead of merge (default: merge)
|
|
42
43
|
```
|
|
43
44
|
|
|
45
|
+
**Remote Pull with Namespace:**
|
|
46
|
+
- Format: `username/packageName` or `orgname/packageName`
|
|
47
|
+
- You can only pull from your own account or organizations you're a member of
|
|
48
|
+
- The package is saved locally without the namespace (e.g., `user/cli` → `.commandcode/taste/cli/`)
|
|
49
|
+
|
|
44
50
|
### Push Taste Package
|
|
45
51
|
|
|
46
52
|
Push taste packages from your project to storage:
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{spawn as e}from"child_process";import{Command as o,Option as t}from"commander";import{readFileSync as a}from"fs";import{fileURLToPath as n}from"url";import{dirname as r}from"path";import{findUpSync as
|
|
2
|
+
import{spawn as e}from"child_process";import{Command as o,Option as t}from"commander";import{readFileSync as a}from"fs";import{fileURLToPath as n}from"url";import{dirname as r}from"path";import{findUpSync as i}from"find-up";function getPackageJson(){const e=import.meta.url,o=n(e),t=r(o),s=i("package.json",{cwd:t});if(!s)throw new Error("Could not find package.json");return JSON.parse(a(s,"utf8"))}(0,Object.defineProperty)(getPackageJson,"name",{value:"getPackageJson",configurable:!0});var s=getPackageJson(),l=new o;l.name("taste").description("Manage taste learning packages by CommandCode").version(s.version,"-v, --version","output the version number").allowUnknownOption().helpOption("-h, --help","display help for command"),l.command("push [package]").description("Push packages from project to remote or global storage (prompts on conflicts)").option("-g, --global","Push to global storage").option("--remote","Push to remote").option("--all","Push all packages").option("--overwrite","Overwrite target without prompting (default: interactive merge)").addOption(new t("--dev","Push to dev environment").hideHelp()).allowUnknownOption().action(()=>{}),l.command("pull [package]").description("Pull packages from storage to project (prompts on conflicts)").option("-g, --global","Pull from global").option("--remote","Pull from remote").option("--all","Pull all packages").option("--overwrite","Overwrite local without prompting (default: interactive merge)").addOption(new t("--dev","Use dev environment").hideHelp()).allowUnknownOption().action(()=>{}),l.command("list").description("List available packages").option("-g, --global","List global packages").option("--remote","List remote packages").addOption(new t("--dev","Use dev environment").hideHelp()).allowUnknownOption().action(()=>{}),l.command("delete <package>").description("Delete a package").option("-g, --global","Delete from global").allowUnknownOption().action(()=>{}),l.command("lint [package]").description("Validate taste file format and structure").option("-g, --global","Lint global packages").option("--all","Lint all packages").allowUnknownOption().action(()=>{}),l.command("open <package>").description("Open a package in your editor").option("-g, --global","Open from global").allowUnknownOption().action(()=>{}),l.command("update").description("Update taste CLI to the latest version").action(async()=>{console.log("Updating taste CLI...");const{execSync:e}=await import("child_process");try{e("npm install -g taste@latest",{stdio:"inherit"}),console.log("\n✅ Taste CLI updated successfully!"),console.log('Run "taste -v" to see the new version.')}catch(e){console.error("\n❌ Failed to update taste CLI"),console.error("Please try manually: npm install -g taste@latest"),process.exit(1)}});var p=process.argv.includes("--version")||process.argv.includes("-v"),c=process.argv.includes("--help")||process.argv.includes("-h")||2===process.argv.length,g="update"===process.argv[2];if(p||c||g)l.parse(process.argv);else{const o=e("npx",["command-code","taste",...process.argv.slice(2)],{stdio:"inherit",env:process.env});o.on("error",e=>{console.error("Error: Failed to execute command-code"),console.error(e.message),process.exit(1)}),o.on("exit",e=>{process.exit(e??0)})}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taste",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Taste CLI to manage CommandCode taste",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"commander": "^14.0.0",
|
|
34
34
|
"find-up": "^7.0.0",
|
|
35
|
-
"command-code": "0.0.4-alpha.
|
|
35
|
+
"command-code": "0.0.4-alpha.40"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^24.2.0",
|