tarantool / tarantool/tt

Idea: add possibility to work without `tt` config

Open
#868 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3sp feature teamE
Dominant language
Go
Stars
113
Forks
18
Avg merge
4d 11h
Merged PRs (30d)
23

Description

Currently it is already possible to work with empty tt.yaml:

$ echo 'env:' > tt.yaml 
$ tt status
 INSTANCE  STATUS  PID  MODE 

tt will use default values for the entire configuration. It would be more convenient to skip this unnecessary echo step and use the default value if the configuration is not found. This means that tt will treat the current directory as the application. From this statement, it follows that tt, by default, should not attempt to search for system-wide configuration. System-wide configuration should be explicitly enabled using the -S option.
From the developer's perspective, it is more convenient to navigate to the directory where the application is located and run the tt start command without using tt init or creating an empty tt.yml file manually.
Commands like tt create should be able to create an application in current directory even if the config file is not present.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing configuration discovery and the -S option in the code paths for tt status, tt start, and tt create. Done means these commands use defaults when tt.yaml is absent, treat the current directory as the application, and only search system-wide configuration when -S is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.