Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/jira.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ addItem = (project)->
addIssueCallback = (type)->
jiraCli.addIssue summary, description,
issueTypes[type - 1].id, project
dutils.ask "Type ", allowedTypes, addIssueCallback, allowedTypes
dutils.ask "Type ", allowedTypes,
addIssueCallback, allowedTypes

# ## Main entry point ##
#
Expand Down Expand Up @@ -187,7 +188,11 @@ if require.main is module
return
args = argv.argv

configFilePath = path.join process.env.HOME, '.jiraclirc.json'
if process.env.HOME
configFilePath = path.join process.env.HOME, '.jiraclirc.json'
else
console.log "I'm an HOMEless"
return
unless fs.existsSync configFilePath
createConfigFile configFilePath
return
Expand Down