manifoldco / manifoldco/torus-cli

Tying directories directly to an environment or service

Open
#312 1 comment 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Go
Stars
603
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Today, with `torus link` you can tie a directory and it's children to a specific organization and project. However, you cannot a directory directly to a service or environment.

In some cases (such as with terraform controlled infrastructure), it'd be nice to be able to tie a directory directly to a specific environment and/or service.

Off the top of my head I can think of a few different ways we could approach this problem:

- Enabling recursive `.torusrc` files, where we'd look up/find the `.torusrc` closest and then layer the settings from subsequent `.torusrc` files in subsequent directories until we reach `$HOME/.torusrc`.
- Enabling a user to specify a service or environment via `.torus.json` either as an option to `torus link` or as a secondary field.

Contributor guide

Open the contributing guide

Research direction

Start at the `torus link` entry point and inspect how `.torusrc` and `.torus.json` currently associate directories with organizations and projects. Compare the proposed recursive `.torusrc` and secondary `.torus.json` approaches, then define completion as allowing a directory to target a specific service or environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.