Skip to content

daveio/ws

Repository files navigation

ws

Workspace Switcher: a tool to switch between shell contexts

Status

Usable. Some text is still boilerplate, but the logic is in place.

Install with go get -u github.com/daveio/ws.

Use ws.example.yaml to construct a config file and save it to ~/.ws.yaml.

Use ws install to set up shell integration for environment variable support.

ws --help will give you an idea of usage (forgive the boilerplate).

Order of execution

graph TD
  A[OLD_WORKSPACE is active] --> B[User runs 'ws switch NEW_WORKSPACE']
  B --> C('beforeDown' hook commands)
  C --> D(OLD_WORKSPACE 'down' commands)
  D --> E('afterDown' hook commands)
  E --> F('beforeUp' hook commands)
  F --> G(NEW_WORKSPACE 'up' commands)
  G --> H('afterUp' hook commands)
  H --> I[NEW_WORKSPACE is active]

  classDef state fill:#ff6,stroke:#333,stroke-width:2px;
  classDef action fill:#fbb,stroke:#333,stroke-width:2px;
  classDef execution fill:#bbf,stroke:#333,stroke-width:2px;
  class A,I state
  class B action
  class C,D,E,F,G,H execution
Loading

About

Workspace Switcher: a tool to switch between shell contexts

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages