lsh-framework 0.9.0 → 0.9.1

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.
@@ -750,10 +750,15 @@ LSH_SECRETS_KEY=${this.encryptionKey}
750
750
  */
751
751
  showLoadInstructions(envFilePath) {
752
752
  console.log('📝 To load secrets in your current shell:');
753
- console.log(` export $(cat ${envFilePath} | grep -v '^#' | xargs)`);
754
753
  console.log();
755
- console.log(' Or for safer loading (preserves quotes):');
756
- console.log(` set -a; source ${envFilePath}; set +a`);
754
+ console.log(' bash/zsh:');
755
+ console.log(` set -a && source ${envFilePath} && set +a`);
756
+ console.log();
757
+ console.log(' fish:');
758
+ console.log(` export (cat ${envFilePath} | grep -v '^#')`);
759
+ console.log();
760
+ console.log(' Or use lsh to load:');
761
+ console.log(` eval "$(lsh get --all --export)"`);
757
762
  console.log();
758
763
  }
759
764
  /**
@@ -814,13 +819,15 @@ LSH_SECRETS_KEY=${this.encryptionKey}
814
819
  if (status.localExists && status.keySet) {
815
820
  suggestions.push('');
816
821
  suggestions.push('📝 To load secrets in your current shell:');
817
- suggestions.push(` export $(cat ${envFilePath} | grep -v '^#' | xargs)`);
818
822
  suggestions.push('');
819
- suggestions.push(' Or for safer loading (with quotes):');
820
- suggestions.push(` set -a; source ${envFilePath}; set +a`);
823
+ suggestions.push(' bash/zsh:');
824
+ suggestions.push(` set -a && source ${envFilePath} && set +a`);
825
+ suggestions.push('');
826
+ suggestions.push(' fish:');
827
+ suggestions.push(` export (cat ${envFilePath} | grep -v '^#')`);
821
828
  suggestions.push('');
822
829
  suggestions.push('💡 Add to your shell profile for auto-loading:');
823
- suggestions.push(` echo "set -a; source ${path.resolve(envFilePath)}; set +a" >> ~/.zshrc`);
830
+ suggestions.push(` echo "set -a && source ${path.resolve(envFilePath)} && set +a" >> ~/.zshrc`);
824
831
  }
825
832
  // Display suggestions
826
833
  if (suggestions.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lsh-framework",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Encrypted secrets manager with automatic rotation, team sync, and multi-environment support. Built on a powerful shell with daemon scheduling and CI/CD integration.",
5
5
  "main": "dist/app.js",
6
6
  "bin": {