Skip to content

Fix/rename module#121

Merged
mattyjones merged 3 commits intoN0MoreSecr3ts:masterfrom
DocEmmetBrown:fix/rename-module
Jun 22, 2022
Merged

Fix/rename module#121
mattyjones merged 3 commits intoN0MoreSecr3ts:masterfrom
DocEmmetBrown:fix/rename-module

Conversation

@DocEmmetBrown
Copy link
Copy Markdown
Contributor

@DocEmmetBrown DocEmmetBrown commented Nov 12, 2021

renaming module from wraith to github.com/N0MoreSecr3ts/wraith to enable imports from outside.

We can now do things like :

package main

import (
	"fmt"

	"github.com/N0MoreSecr3ts/wraith/core"
)

func main() {
	tmpFolderPath := "./tmp"

	wraithConfig := core.SetConfig()
	scanType := "localPath"
	sess := core.NewSession(wraithConfig, scanType)
	sess.Silent = true

	core.ScanDir(tmpFolderPath, sess)

	for _, finding := range sess.Findings {
		fmt.Println(finding.Content)
	}
}

@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit 2ba95ed and detected 0 issues on this pull request.

View more on Code Climate.

@mattyjones mattyjones merged commit 74d6e9c into N0MoreSecr3ts:master Jun 22, 2022
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