nhmood / watson-perl Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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;
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?
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;
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
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?)
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");
}
}
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 executablelib
directory for the library files you will split off from the current single fileBuild.PL
This is really just a more concrete goal than #23. I'm sure @wchristian is thinking about these things as well.
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?
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?
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;
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?
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
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?
###########################################################
I have checked my password/owner and everything. The auth may not be working because the repository is private
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");
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;
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
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
###########################################################
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;
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.
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
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)
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
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
###########################################################
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
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);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.