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

Structure project in the boltdb-inspired-way #42

Merged
merged 2 commits into from
Jan 14, 2018
Merged

Structure project in the boltdb-inspired-way #42

merged 2 commits into from
Jan 14, 2018

Conversation

ilyaglow
Copy link
Contributor

@ilyaglow ilyaglow commented Mar 12, 2017

Why

Attempt to address #41

Summary

Main parts of gobuster package that I picked:

  • dir.go
  • dns.go
  • helpers.go
  • output.go
  • parsecmd.go
  • state.go

How to try this out

git fetch origin pull/42/head:reorganize-main
git checkout reorganize-main
cd cmd/gobuster
go run main.go -h

Links

Boltdb reference

Any suggestions are welcomed

@OJ
Copy link
Owner

OJ commented Mar 14, 2017

Thank you @ilyaglow! I'm away at a conference for the rest of the week, but I promise to take a look at this as soon as I can afterwards. Cheers!

@OJ OJ added the enhancement label Mar 14, 2017
@OJ OJ self-assigned this Mar 14, 2017
@OJ
Copy link
Owner

OJ commented Mar 22, 2017

Thanks again @ilyaglow, I'm back home now and will look at this very soon!

@OJ
Copy link
Owner

OJ commented May 17, 2017

@ilyaglow I haven't forgotten about you mate :) I'll be sorting this out soon. Thanks again!

@OJ OJ added this to the Version 1.4 milestone May 28, 2017
@OJ
Copy link
Owner

OJ commented May 28, 2017

OK milestone added, coming soon!

@0xdevalias
Copy link
Contributor

Any updates on this @OJ ?

@0xdevalias
Copy link
Contributor

0xdevalias commented Sep 8, 2017

So.. I've been trying to figure out how to cleanly merge/rebase the work I have done on #54 onto this, while keeping all of @ilyaglow's commits/changes, and I think I just want to ragequit IT and go cry in a corner somewhere dislike rebasing.

I would like to bring them into alignment, but I don't really know how to make it work without going and manually rewriting all the changes.

Edit: At this stage I think I will just continue making my changes on my branch, refactoring things as I go, and keeping this layout in mind as I do. Would rather invest my time on improving core functionality instead of trying to figure rebasing.

Edit2: Put a WIP-style branch up where I manually copied the changes across into the same structure.

0xdevalias added a commit to 0xdevalias/gobuster that referenced this pull request Sep 8, 2017
@OJ
Copy link
Owner

OJ commented Sep 19, 2017

To begin with, this PR will get merged first. From there I'll be pulling things in from other branches.

Apologies for the delay, I've been a bit on the busy front of late!

OJ added a commit that referenced this pull request Sep 19, 2017
@OJ
Copy link
Owner

OJ commented Sep 19, 2017

OK so the current working branch is https://github.com/OJ/gobuster/tree/1.4-dev which has the first stages of changes from @ilyaglow and has the adjustments from @alias1. I'd love it if you guys could cast your eyes on it a bit and let me know what you think.

I like the libgobuster idea so that it can be included from other apps. Future work would do more to separate UI level stuff from the lib code as well.

Thanks folks!

@ilyaglow
Copy link
Contributor Author

Great to see this rolls :)

Summarizing changes in 1.4-dev, I like that ParseCmdLine is moved to the main package and the use of go-multierror. Basically I was trying to do the same as @alias1 and the goal was to use gobuster as a library from other apps.

The main difference is that I tried to stay more "goish" with packaging. I think if we plan to add another libsomething dependency folder to gobuster when it is totally right thing but otherwise it is a little cumbersome to import github.com/OJ/gobuster/libgobuster vs github.com/OJ/gobuster, but I'm not against it.

@OJ
Copy link
Owner

OJ commented Sep 19, 2017

Good point :)

@0xdevalias
Copy link
Contributor

0xdevalias commented Sep 19, 2017 via email

@0xdevalias
Copy link
Contributor

Had a quick skim through the code in 1.4-dev and looks like it has all the things :) Thanks for merging @OJ !

@ilyaglow
Copy link
Contributor Author

ilyaglow commented Oct 7, 2017

Seems this one can be closed, thanks guys!

@ilyaglow ilyaglow closed this Oct 7, 2017
@OJ
Copy link
Owner

OJ commented Oct 30, 2017

I'm going to keep this open until it's landed in master. Thanks!

@OJ OJ reopened this Oct 30, 2017
@OJ OJ merged commit 9b4e818 into OJ:master Jan 14, 2018
@ilyaglow ilyaglow deleted the reorganize-main branch January 14, 2018 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants