docs(README.md): update description text for better readability
style(git.ts): add line breaks for better code readability
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<h1 align="center">OpenCommit</h1>
|
<h1 align="center">OpenCommit</h1>
|
||||||
<h4 align="center">Follow the bird <a href="https://twitter.com/_sukharev_"><img src="https://img.shields.io/twitter/follow/_sukharev_?style=flat&label=_sukharev_&logo=twitter&color=0bf&logoColor=fff" align="center"></a>
|
<h4 align="center">Follow the bird <a href="https://twitter.com/_sukharev_"><img src="https://img.shields.io/twitter/follow/_sukharev_?style=flat&label=_sukharev_&logo=twitter&color=0bf&logoColor=fff" align="center"></a>
|
||||||
</div>
|
</div>
|
||||||
<h2>Auto-generate meaningful commits in 1 second</h2>
|
<h2>Auto-generate meaningful commits in a second</h2>
|
||||||
<p>Killing lame commits with AI 🤯🔫</p>
|
<p>Killing lame commits with AI 🤯🔫</p>
|
||||||
<a href="https://www.npmjs.com/package/opencommit"><img src="https://img.shields.io/npm/v/opencommit" alt="Current version"></a>
|
<a href="https://www.npmjs.com/package/opencommit"><img src="https://img.shields.io/npm/v/opencommit" alt="Current version"></a>
|
||||||
<h4 align="center">🪩 Winner of <a href="https://twitter.com/_sukharev_/status/1683448136973582336">GitHub 2023 hackathon</a> 🪩</h4>
|
<h4 align="center">🪩 Winner of <a href="https://twitter.com/_sukharev_/status/1683448136973582336">GitHub 2023 hackathon</a> 🪩</h4>
|
||||||
|
|||||||
@@ -75,8 +75,11 @@ export const getChangedFiles = async (): Promise<string[]> => {
|
|||||||
|
|
||||||
export const gitAdd = async ({ files }: { files: string[] }) => {
|
export const gitAdd = async ({ files }: { files: string[] }) => {
|
||||||
const gitAddSpinner = spinner();
|
const gitAddSpinner = spinner();
|
||||||
|
|
||||||
gitAddSpinner.start('Adding files to commit');
|
gitAddSpinner.start('Adding files to commit');
|
||||||
|
|
||||||
await execa('git', ['add', ...files]);
|
await execa('git', ['add', ...files]);
|
||||||
|
|
||||||
gitAddSpinner.stop('Done');
|
gitAddSpinner.stop('Done');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user