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

local repo added #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

local repo added #3

wants to merge 1 commit into from

Conversation

gespi1
Copy link
Collaborator

@gespi1 gespi1 commented Jul 21, 2022

local repo struct

type Repo struct {
	Type string
	Path string
}

"local" repo works from a folder on the local FS, determined by the user specifies Path field in Repo Struct.

local repo doesnt cache on ~/.npc.
created func determineTemplateCache() that will set the template cache depending on the repo Type.

Optimally we should create an interface for Repo Struct ( the one in the repos dir ). We probably want all repo kinds to specify their Type It'll look like this for now:

type Repo interface {
	Type String
}

but idk how to best implement this 🫠

@gespi1 gespi1 requested a review from derage July 21, 2022 02:02
Copy link
Owner

@derage derage left a comment

Choose a reason for hiding this comment

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

Yea for now it looks good to me. we can mess around with the structs in the future

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.

2 participants