Skip to content

How to set a default environment? #142

Closed
@rngtng

Description

I've trouble setting a default environment. I tried your example hook (https://httpyac.github.io/plugins/plugin-api.html#provideenvironmentshook) but this seems to just return a list of possible envs? I thought with that running httpyac test.http -e dev,prev could be simplified to just httpyac test.http. Any advice how else this could be achieved?

As I could see this could be a feature demanded quite often, what about 'native' support with sth like:

{
  "$shared": {
    "host": "https://mydoman"
  },
  "$default": "dev",
  "dev": {
    "user": "mario",
    "password": "123456"
  },
  "prod": {
    "user": "mario",
    "password": "password$ecure123"
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions