Add more options for tea.yml to set default flags #488

Open
opened 2022-06-18 21:18:01 +00:00 by mzml · 4 comments

After try tea few days, i find ~/.tea/tea.yml file. I try configure output flags like this :

. . .
20 preferences:
21   editor: false
22   flag_defaults:
23     remote: ""
24     output: yaml
. . .

But when try tea repo list, the output still table. What im doing wrong? Is there any documentation about tea.yml ? TIA, sorry for bothering.

After try tea few days, i find `~/.tea/tea.yml` file. I try configure output flags like this : . . . 20 preferences: 21 editor: false 22 flag_defaults: 23 remote: "" 24 output: yaml . . . But when try `tea repo list`, the output still table. What im doing wrong? Is there any documentation about `tea.yml` ? TIA, sorry for bothering.
Owner

https://gitea.com/gitea/tea/src/branch/master/modules/config/config.go#L22-L27

looks like there was made an intial atempt but not fully implemented for each flag

https://gitea.com/gitea/tea/src/branch/master/modules/config/config.go#L22-L27 looks like there was made an intial atempt but not fully implemented for each flag
6543 changed title from Question about tea.yml to Add more optopns for tea.yml to set default flags 2022-06-19 19:21:14 +00:00
6543 added the
kind
enhancement
label 2022-06-19 19:21:38 +00:00
noerw changed title from Add more optopns for tea.yml to set default flags to Add more options for tea.yml to set default flags 2022-06-19 20:20:05 +00:00
Author

@6543

https://gitea.com/gitea/tea/src/branch/master/modules/config/config.go#L22-L27

looks like there was made an intial atempt but not fully implemented for each flag

Thanks for explaining, i will wait for development

@6543 >https://gitea.com/gitea/tea/src/branch/master/modules/config/config.go#L22-L27 > >looks like there was made an intial atempt but not fully implemented for each flag Thanks for explaining, i will wait for development
Member

Adding this is simple enough if you want to try :)

for reference see e53c615164

Adding this is simple enough if you want to try :) for reference see https://gitea.com/gitea/tea/commit/e53c615164d08078942a46f7c85fd5bf52741dad
Author

Adding this is simple enough if you want to try :)

for reference see e53c615164

Thank you, already tried this and it's work

> Adding this is simple enough if you want to try :) > > for reference see https://gitea.com/gitea/tea/commit/e53c615164d08078942a46f7c85fd5bf52741dad Thank you, already tried [this](https://gitea.com/mzml/tea/commit/5992be9ceff9baf6daa4acf801e54d55db14ba7b) and it's work
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/tea#488
No description provided.