Skip to content

Commit

Permalink
refactor: ♻️ Simplify packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
nclsbayona committed Aug 19, 2024
1 parent 22c39f2 commit 396e8f5
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 20 deletions.
5 changes: 3 additions & 2 deletions cmd/adapters/commander/cli.go → adapters/commander/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ package commander

import (
"fmt"
"github.com/nclsbayona/resume-generator/pkg/core/domain"
"github.com/nclsbayona/resume-generator/pkg/core/ports"

"github.com/nclsbayona/resume-generator/domain"
"github.com/nclsbayona/resume-generator/ports"
)

type CLI struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package commander
// Options: properties_file_name (File to read the properties from)

import (
"github.com/nclsbayona/resume-generator/pkg/core/domain"
"github.com/nclsbayona/resume-generator/pkg/core/ports"
"gopkg.in/yaml.v3"
"os"

"github.com/nclsbayona/resume-generator/domain"
"github.com/nclsbayona/resume-generator/ports"
"gopkg.in/yaml.v3"
)

type sProperties struct {
Expand Down
5 changes: 3 additions & 2 deletions cmd/adapters/generator/html.go → adapters/generator/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package generator
// Options: template (Template directory to use)

import (
"github.com/nclsbayona/resume-generator/pkg/core/domain"
"github.com/nclsbayona/resume-generator/pkg/core/ports"
"os"
"text/template"

"github.com/nclsbayona/resume-generator/domain"
"github.com/nclsbayona/resume-generator/ports"
)

type AuxiliaryWriter struct {
Expand Down
7 changes: 4 additions & 3 deletions cmd/adapters/injector/yaml.go → adapters/injector/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package injector
// Options: input_reading (File to read the resume from)

import (
"github.com/nclsbayona/resume-generator/pkg/core/domain"
"github.com/nclsbayona/resume-generator/pkg/core/ports"
"gopkg.in/yaml.v3"
"os"

"github.com/nclsbayona/resume-generator/domain"
"github.com/nclsbayona/resume-generator/ports"
"gopkg.in/yaml.v3"
)

type sAchievement string
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions cmd/main.go → examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package main

import (
"flag"
"github.com/nclsbayona/resume-generator/cmd/adapters/commander"
"github.com/nclsbayona/resume-generator/cmd/adapters/generator"
"github.com/nclsbayona/resume-generator/cmd/adapters/injector"
"github.com/nclsbayona/resume-generator/pkg/core/domain"
"github.com/nclsbayona/resume-generator/pkg/core/ports"
"github.com/nclsbayona/resume-generator/adapters/commander"
"github.com/nclsbayona/resume-generator/adapters/generator"
"github.com/nclsbayona/resume-generator/adapters/injector"
"github.com/nclsbayona/resume-generator/domain"
"github.com/nclsbayona/resume-generator/ports"
"os"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/core/ports/commander.go → ports/commander.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ports

import (
"github.com/nclsbayona/resume-generator/pkg/core/domain"
"github.com/nclsbayona/resume-generator/domain"
)

type Commander interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/core/ports/generator.go → ports/generator.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ports

import (
"github.com/nclsbayona/resume-generator/pkg/core/domain"
"github.com/nclsbayona/resume-generator/domain"
)

type Generator interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/core/ports/injector.go → ports/injector.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ports

import (
"github.com/nclsbayona/resume-generator/pkg/core/domain"
"github.com/nclsbayona/resume-generator/domain"
)

type Injector interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/core/usecase/printresume.go → usecase/printresume.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package usecase

import (
"github.com/nclsbayona/resume-generator/pkg/core/domain"
"github.com/nclsbayona/resume-generator/pkg/core/ports"
"github.com/nclsbayona/resume-generator/domain"
"github.com/nclsbayona/resume-generator/ports"
)

type sPrintResume struct {
Expand Down

0 comments on commit 396e8f5

Please sign in to comment.