mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3380] [MERGED] feat: introduces ability to export single environment variables and allow CLI to accept the export format used by the app #4362
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4362
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3380
Author: @joeljstephen
Created: 9/21/2023
Status: ✅ Merged
Merged: 10/6/2023
Merged by: @AndrewBastin
Base:
release/2023.8.2← Head:fix/cli-environment-export📝 Commits (10+)
a7fd1ddfeat: add ability to export a single environmentaff21b8refactor: export environment without idf226974feat: introducing zod for checking json format for environment variables5142ca4refactor: new zod specific type for HoppEnvPairf14b67afeat: add ability to export single environment in team environment1496797refactor: moved zod as a dependency to devDependencyacf9e21refactor: separated repeating logic to helper file29c160arefactor: removed unnecessary to string operationfc3f8cechore: rearranged smart item placement269c173refactor: introduced error type when a bulk environment export is used in cli📊 Changes
11 files changed (+196 additions, -258 deletions)
View changed files
📝
packages/hoppscotch-cli/package.json(+3 -2)📝
packages/hoppscotch-cli/src/handlers/error.ts(+6 -1)📝
packages/hoppscotch-cli/src/options/test/env.ts(+30 -12)📝
packages/hoppscotch-cli/src/types/errors.ts(+1 -0)📝
packages/hoppscotch-cli/src/types/request.ts(+17 -0)📝
packages/hoppscotch-common/locales/en.json(+1 -0)📝
packages/hoppscotch-common/src/components/environments/my/Environment.vue(+22 -0)📝
packages/hoppscotch-common/src/components/environments/teams/Environment.vue(+21 -0)➕
packages/hoppscotch-common/src/helpers/import-export/export/environment.ts(+48 -0)📝
packages/hoppscotch-sh-admin/src/components.d.ts(+1 -0)📝
pnpm-lock.yaml(+46 -243)📄 Description
Ticket
Closes HFE-203
Description
This PR introduces the following features and fixes to the
Hoppscotch AppandHoppscotch CLIFeatures Added:
Hoppscotch AppHoppscotch Appexports.Zodpackage into theHoppscotch CLIto check the validity of the formats for the Environment variables.Issues Fixes:
Hoppscotch Appto the CLI.Objectives
Note
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.