Giter Club home page Giter Club logo

watson-perl's People

Contributors

eugenekolo avatar latk avatar nhmood avatar zhuangya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

watson-perl's Issues

implement local only reporting (make it default?) [watson]

filename : watson
line # : 21
tag : todo
md5 : 426efff0672c0fd430817b85fa0f500a

# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

# For testing
#use strict;

change @IGNOREDIR to hash instead of array for efficiency [watson]

filename : watson
line # : 15
tag : todo
md5 : 36637a19be6ce91bf0f77abdc988538b

# [todo] - change @IGNOREDIR to hash instead of array for efficiency
# [todo] - only allow user to check executing users files (setuid exploit)
# [todo] - wrap printed lines around 80 characters
# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

add remote / local options and necessary logic [watson]

filename : watson
line # : 29
tag : todo
md5 : e774cf2a432ab1df50b3205b961bf4c3

# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

# For testing
#use strict;
#use warnings;

# For color print outs
use Term::ANSIColor qw(:constants);

# Route Ctrl-C to cExit to clean up results 
$SIG{'INT'} = \&cExit;

add ability to update issue if same title but different md5 [watson]

filename : watson
line # : 20
tag : todo
md5 : 14b1bddd3a805226cf50337ad120e12b

# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

# For testing

add priority listing for tags and todo [watson]

filename : watson
line # : 9
tag : todo
md5 : c1a1178e78c1cc479efdfc71f660d88a

# [todo] - add priority listing for tags and todo
# [todo] - generate .html file with report
# [todo] - add text editor/jump to code for each item in .html report
# [todo] - if x is placed in todo [!] then move it to separate file
# [todo] - store in separate file or parse every time? (thinking parse)
# [todo] - tell when directory changes with some header
# [todo] - change @IGNOREDIR to hash instead of array for efficiency
# [todo] - only allow user to check executing users files (setuid exploit)
# [todo] - wrap printed lines around 80 characters
# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)

add /* style comment [watson]

filename : watson
line # : 1054
tag : todo
md5 : 2f5f3877d38e60eddbf38fa8b12533e1

    # [todo] - add /* style comment
    if ( $ext eq ".cpp" || $ext eq ".cc" ||  $ext eq ".c" || $ext eq ".h"){
        debugPrint("Comment type is: //\n");
        return "//";
    }
    # Bash / Ruby / Perl    
    elsif ( $ext eq ".sh" || $ext eq ".rb" || $ext eq ".pl"){
        debugPrint("Comment type is: #\n");
        return "#";
    }
    # Can't recognize extension, keep looping
    else {
        $file =~ s/(\.(\w+))$//;
        debugPrint("Didn't recognize, new file: $file\n");
    }
}

Make this a cpanish bundle

It'd be nice to make this a cpan-style thing so it can be installed with the usual Perl toolchain.

At a glance that might mean:

  • bin/script directory for the executable
  • lib directory for the library files you will split off from the current single file
  • install tool like Build.PL
  • something to automatically fatpack it all so you can still distribute it as one file?
  • changelog
  • test suite

This is really just a more concrete goal than #23. I'm sure @wchristian is thinking about these things as well.

Github 2-factor auth / ability to manually enter token

Maybe I'm missing something, but I can't establish an OAuth token with this tool. That's totally cool, but then please provide some docs as to how to manually enter the info.

I've using the following (inspired by this post):

[github_api]
1234token_generated_from_github_control_panel_5678

[github_repo]
knksmith57/my_repo

[github_endpoint]
https://api.github.com

Here's what I get when I try to run it:

$ watson -r github
------------------------------
watson - inline issue manager
------------------------------
[ + ] Obtaining OAuth Token for GitHub...
Unknown section "github_api" at /some/path/to/bin/watson line 731, <$_[...]> line 23.

What am I missing here?

tell when directory changes with some header [watson]

filename : watson
line # : 14
tag : todo
md5 : 60b296a937d78bfde137316913ce33fb

# [todo] - tell when directory changes with some header
# [todo] - change @IGNOREDIR to hash instead of array for efficiency
# [todo] - only allow user to check executing users files (setuid exploit)
# [todo] - wrap printed lines around 80 characters
# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

progress bar for obtaining github/bitbucket issue list [watson]

filename : watson
line # : 22
tag : todo
md5 : fcbd55d893efee9ab08c0b681d97c869

# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

# For testing
#use strict;
#use warnings;

want to help you improve your perl to help you improve this greatly

You mentioned that you wrote this version as a way to learn Perl, however sadly it looks like you fell into a great number of traps along the way that are better helped not by me changing the code, but by teaching you concepts you haven't found on your way yet.

Are you online in any realtime chat environments, preferrably IRC?

if x is placed in todo [!] then move it to separate file [watson]

filename : watson
line # : 12
tag : todo
md5 : 00369dfcdb6f8c19ed6b7a5e1dd1f177

# [todo] - if x is placed in todo [!] then move it to separate file
# [todo] - store in separate file or parse every time? (thinking parse)
# [todo] - tell when directory changes with some header
# [todo] - change @IGNOREDIR to hash instead of array for efficiency
# [todo] - only allow user to check executing users files (setuid exploit)
# [todo] - wrap printed lines around 80 characters
# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val

only allow user to check executing users files (setuid exploit) [watson]

filename : watson
line # : 16
tag : todo
md5 : 3f9249f7b9c15287a46957e1536f0c19

# [todo] - only allow user to check executing users files (setuid exploit)
# [todo] - wrap printed lines around 80 characters
# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################

Only basic http auth, get OAuth for Bitbucket [watson]

filename : watson
line # : 1613
tag : todo
md5 : 0bb963a4d16f768c23520c03dbb8fbfd

# [todo] - Only basic http auth, get OAuth for Bitbucket
# Bitbucket OAuth needs to redirect to some grant access page
# Not sure how to do that with a CLI, basic HTTP auth for now
sub bitbucketSetup {
    # JSON Response var
    my $js;

    # Set remote setup to one so password isn't asked for in Bitbucket parseConfig section
    # Crappy fix, won't need this when OAuth is implemented for Bitbucket
    $REMOTESETUP = 1;

    # [fixme] - Same code as header just without wprint, make modular
    print(BOLD "------------------------------\n");
    print(BOLD "watson", RESET);
    print(" - ");
    print(BOLD YELLOW "inline issue manager\n", RESET);
    print(BOLD "------------------------------\n\n");

local should be default, must use -r or remote flag to post and check? [watson]

filename : watson
line # : 23
tag : todo
md5 : f2caa93711d15a7bfbd517e461366448

# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

# For testing
#use strict;
#use warnings;

generate .html file with report [watson]

filename : watson
line # : 10
tag : todo
md5 : 58c98f5168b4e7e1bfde3b720f94a234

# [todo] - generate .html file with report
# [todo] - add text editor/jump to code for each item in .html report
# [todo] - if x is placed in todo [!] then move it to separate file
# [todo] - store in separate file or parse every time? (thinking parse)
# [todo] - tell when directory changes with some header
# [todo] - change @IGNOREDIR to hash instead of array for efficiency
# [todo] - only allow user to check executing users files (setuid exploit)
# [todo] - wrap printed lines around 80 characters
# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests

replace json parser with just grep? need to get status if failed [watson]

filename : watson
line # : 19
tag : todo
md5 : f556ada5b32b7d9d79e23b7cf607aa5f

# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

change github issue checks to -d instead of issue?key=val [watson]

filename : watson
line # : 28
tag : todo
md5 : 27fc5ba134c1c514cc8787e6519b8aa3

# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

# For testing
#use strict;
#use warnings;

# For color print outs
use Term::ANSIColor qw(:constants);

# Route Ctrl-C to cExit to clean up results 
$SIG{'INT'} = \&cExit;

Nested quantifiers in regex (Windows)

I'm attempting to use Watson under Windows, using ActiveState Perl.

When running perl watson.pl I get:

Nested quantifiers in regex; marked by <-- HERE in m/^((\.?/?\w?+ <-- HERE /?)+)/ at watson.pl line 708.

add text editor/jump to code for each item in .html report [watson]

filename : watson
line # : 11
tag : todo
md5 : 4017f4cb31f5f7bfd313f40f9d631247

# [todo] - add text editor/jump to code for each item in .html report
# [todo] - if x is placed in todo [!] then move it to separate file
# [todo] - store in separate file or parse every time? (thinking parse)
# [todo] - tell when directory changes with some header
# [todo] - change @IGNOREDIR to hash instead of array for efficiency
# [todo] - only allow user to check executing users files (setuid exploit)
# [todo] - wrap printed lines around 80 characters
# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way

replace open/closed issue var with just all and closed? [watson]

filename : watson
line # : 30
tag : todo
md5 : 8fae46cdfffdf82693a57e74f6ee9e01

# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

# For testing
#use strict;
#use warnings;

# For color print outs
use Term::ANSIColor qw(:constants);

# Route Ctrl-C to cExit to clean up results 
$SIG{'INT'} = \&cExit;

# For debugging (print data structures)

wrap printed lines around 80 characters [watson]

filename : watson
line # : 17
tag : todo
md5 : 147ff71e507d13df6fd2992cdffd53f7

# [todo] - wrap printed lines around 80 characters
# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 

command line option to remove remote repos [watson]

filename : watson
line # : 18
tag : todo
md5 : 21a4cf82e40b0678a839f26dc4ba3155

# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

store in separate file or parse every time? (thinking parse) [watson]

filename : watson
line # : 13
tag : todo
md5 : 369c95f2d135db2624df3700654e9500

# [todo] - store in separate file or parse every time? (thinking parse)
# [todo] - tell when directory changes with some header
# [todo] - change @IGNOREDIR to hash instead of array for efficiency
# [todo] - only allow user to check executing users files (setuid exploit)
# [todo] - wrap printed lines around 80 characters
# [todo] - command line option to remove remote repos
# [todo] - replace json parser with just grep? need to get status if failed
# [todo] - add ability to update issue if same title but different md5
# [todo] - implement local only reporting (make it default?)
# [todo] - progress bar for obtaining github/bitbucket issue list
# [todo] - local should be default, must use -r or remote flag to post and check?
#        - maybe have it check against background unless -local is passed
#        - but dont post unless --post is used (make it faster?)
# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic

add status indicator for remote requests [watson]

filename : watson
line # : 26
tag : todo
md5 : 15dd4063c6a9f19f7ee9a1ce64b84b00

# [todo] - add status indicator for remote requests
#        - we know # of requests and which we are on, can do it that way
# [todo] - change github issue checks to -d instead of issue?key=val
# [todo] - add remote / local options and necessary logic
# [todo] - replace open/closed issue var with just all and closed?

###########################################################
# Global parameters 
###########################################################

# For testing
#use strict;
#use warnings;

# For color print outs
use Term::ANSIColor qw(:constants);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.