Categorygithub.com/daveio/ws
modulepackage
0.0.0-20240926222516-bc007c8876f2
Repository: https://github.com/daveio/ws.git
Documentation: pkg.go.dev

# README

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

# Packages

Copyright © 2020 Dave Williams <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
No description provided by the author
No description provided by the author