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.

Allow Global Path for Config File or Replace Text in CLI

See original GitHub issue

@CookPete I wish if we could define a global .auto-changelog something like CLI would take global config path for projects where I don’t have to install auto-changelog as a dep but a global install would work.

Right now I am doing this:

auto-changelog --package --unreleased --output 'CHANGELOG.md' --commit-limit 'false' --template '/Users/ahmadawais/Dropbox/bin/changelog.hbs'

But I can’t seem to be able to add the following settings in the CLI

{
	"replaceText": {
		"(NEW|IMPROVE|FIX|DOC|RELEASE|TEST): ": ""
	}
}

I wish I could set a global config file to use with all the settings.

Or you can allow --replace-text option for CLI that would also solve my problem here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
cookpetecommented, Aug 13, 2019

Ah I get you now. Yeah this is a good idea. I’ve added --config or -c to auto-changelog@1.15.0

2reactions
cookpetecommented, Aug 13, 2019

There is already support for .auto-changelog as per 89c8b44774a7. What specifically is not working?

replaceText is not a CLI option due to the complexity of the configuration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow Global Path for Config File or Replace Text in CLI #127
cookpete I wish if we could define a global .auto-changelog something like CLI would take global config path for projects where I don't...
Read more >
How can you find and replace text in a file using the Windows ...
To explain it: powershell starts up powershell.exe, which is included in Windows 7; -Command "... " is a command line arg for powershell.exe ......
Read more >
Configuration basics - AWS Command Line Interface
This section explains how to quickly configure basic settings using the config and credentials files that the AWS Command Line Interface (AWS CLI)...
Read more >
config | npm Docs
global configuration file (defaults to $PREFIX/etc/npmrc ; configurable via CLI option --globalconfig or environment variable $NPM_CONFIG_GLOBALCONFIG ); npm's ...
Read more >
wp search-replace | WP-CLI Command
Searches through all rows in a selection of tables and replaces appearances of the first string with the second string. By default, the...
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