Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: structure of project refactored based on standards #130

Closed

Conversation

akbariandev
Copy link
Collaborator

@akbariandev akbariandev commented May 22, 2024

Description

The project structure refactored based on this repo
Also, sub-commands have been separated into independent files

Related Issue

@akbariandev akbariandev self-assigned this May 22, 2024
@akbariandev akbariandev requested a review from kehiy as a code owner May 22, 2024 09:17
@@ -5,13 +5,14 @@ import (
"os"
"strings"

"github.com/pagu-project/Pagu/internal/engine"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest make Pagu lowercase here: github.com/pagu-project/pagu

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to change the repo name to github.com/pagu-project/pagu on github and actually I have no access to do that

"github.com/pagu-project/Pagu/internal/engine"
"github.com/pagu-project/Pagu/internal/engine/command"
"github.com/pagu-project/Pagu/pkg/log"

"github.com/pactus-project/pactus/crypto"
pagu "github.com/pagu-project/Pagu"
pCmd "github.com/pagu-project/Pagu/cmd"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why pCmd?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we have cmd *cobra.Command as the parameter of the run function. I know this naming is not good but let's fix it in the future

@akbariandev akbariandev requested review from b00f and removed request for b00f May 23, 2024 18:38
@akbariandev akbariandev deleted the refactor/project_structure branch May 26, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor project structure Seperate file per sub-command (handler)
2 participants