Refactor: apply new internal structurs #206
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#206
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/tea:refactor_new-internal-structure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
reference: #184
Aim:
No-Aim:
Refactors:
Refactor: apply new internal structursto WIP: Refactor: apply new internal structurs@ -0,0 +1,153 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
2020
@ -0,0 +19,4 @@
"gopkg.in/yaml.v2"
)
// Config reprensents local configurations
LocalConfig
@ -0,0 +29,4 @@
yamlConfigPath string
)
func init() {
// TODO: dont rely on intransparent init func to detect tea config
c9877bafd5
toc0aa819442
WIP: Refactor: apply new internal structursto Refactor: apply new internal structursOK this already to that big - so wont add more to this and wait until it got merged to send the next batch (shouldn't be that big but will contain impruvements ... (see TODOs)
@ -9,2 +8,3 @@
"log"
"strconv"
"code.gitea.io/tea/modules/intern"
We need a blank line.
between internal modues ?!?
How about a subfolder for issues' commands?
what structur do you mean?
instead of issues_subcomand -> issues/subcomand ?
I didn't do a thorough review yet, but generally it looks like a great improvement ?
Some remarks:
modules/intern
->modules/internal
(intern means Praktikant and isn't that much shorter ;)modules/config
, because it is all about config right now?modules/git/auth.go:absPathWithExpansion
tomodules/util/path.go
?cmd/times.go:formatDuration()
tomodules/print/print.go
?modules/interact
seems a bit too separated, unless you expect that module to grow significantly?1.
internal
is a preserved package name (we can't use that one...)4.
yes I think so :) (I like to have more interaction forcreate
comands with no args)2. &3.
I'll look into it@noerw done
@lunny done
Lint error
@lunny fixed :)
@ -0,0 +6,4 @@
import (
"code.gitea.io/sdk/gitea"
"code.gitea.io/tea/cmd/flags"
sort import
@ -0,0 +1,26 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
year
@lunny do you have time?