question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

prompt-cli does not work with custom config file paths

See original GitHub issue

Following #100, there is no way to run prompt-cli with a specific config file path. It just assumes the default which is commitlint.config.js under the repository’s root.

Expected Behavior

Either:

  1. npm run commit --config </path/to/config.js>
  2. COMMITLINT_CONFIG=/path/to/config.js npm run commit
  3. { config: { '@commitlint/prompt-cli': { config: '/path/to/config.js' } } } in package.json

Current Behavior

prompt-cli runs with no customizations in place (no type/scope enums loaded etc.)

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Your Environment

Executable Version
commitlint --version 6.2.0
git --version 2.17.0
node --version 8.9.0

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
escapedcatcommented, Dec 3, 2020

Welcome! Yeah, please do. You ask in the chat as well if you want: https://devtoolscommunity.herokuapp.com

1reaction
polaroidkiddcommented, Dec 3, 2020

Hii @escapedcat

Thank you for your input and I agree with you (less additional parameter checks === less room for errors in my view).

I’ve forked the repo, had a look around and from what I can see I don’t think it’s too complicated to implement. If I have any questions I’ll post them here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nginx custom config file setting doesn't work when firing up ...
I think somewhere in your custom nginx config file exists following line: include mime.types;. Try to add full path to this file (which...
Read more >
The basics - Black 22.12.0 documentation
Foundational knowledge on using and configuring Black. Black is a well-behaved Unix-style command-line tool: it does nothing if it finds no sources to ......
Read more >
Configuration and credential file settings - AWS Documentation
You can specify a non-default location for the files by setting the ... Run this command to quickly set and view your credentials,...
Read more >
command prompt button
Click Next in the Restore system files and settings window. ; Ctrl + V (or ... Problem is the command prompt (as well...
Read more >
Changelog for Zstandard 1.4.7 - ABI laboratory
... (issue not accessible from cli) build: fix cmake script when using path with ... a list of files to operate upon from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found