Added short descriptions
This commit is contained in:
parent
b6607cbc1e
commit
d80b47f44c
3 changed files with 16508 additions and 692 deletions
|
@ -13,6 +13,7 @@ async function getSoftwareDefinitions() {
|
||||||
async function writeSoftwareDefinitions() {
|
async function writeSoftwareDefinitions() {
|
||||||
try {
|
try {
|
||||||
fs.writeFileSync(`${os.homedir()}/.local/share/chezmoi/software.yml`, YAML.stringify(definitions))
|
fs.writeFileSync(`${os.homedir()}/.local/share/chezmoi/software.yml`, YAML.stringify(definitions))
|
||||||
|
console.log('Wrote additional data to software.yml')
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw Error('Failed to write new software definitions file', e)
|
throw Error('Failed to write new software definitions file', e)
|
||||||
}
|
}
|
||||||
|
@ -23,9 +24,16 @@ async function populateMissing() {
|
||||||
softwarePackages = definitions.softwarePackages
|
softwarePackages = definitions.softwarePackages
|
||||||
for (const pkg in softwarePackages) {
|
for (const pkg in softwarePackages) {
|
||||||
if (softwarePackages[pkg]._github) {
|
if (softwarePackages[pkg]._github) {
|
||||||
console.log(pkg)
|
if (!softwarePackages[pkg]._short) {
|
||||||
|
const sgptResponse = await $`sgpt "Describe ${softwarePackages[pkg]._github}. Make the description extremely short."`
|
||||||
|
console.log('--- START - SGPT Response for _short Acquired ---')
|
||||||
|
console.log(sgptResponse.stdout)
|
||||||
|
console.log('--- END - SGPT Response for _short Acquired ---')
|
||||||
|
softwarePackages[pkg]._short = sgptResponse.stdout
|
||||||
|
}
|
||||||
|
|
||||||
if (!softwarePackages[pkg]._desc) {
|
if (!softwarePackages[pkg]._desc) {
|
||||||
const sgptResponse = await $`sgpt "Describe ${softwarePackages[pkg]._github}. Do not say that you can find more information on its GitHub page."`
|
const sgptResponse = await $`sgpt "Describe ${softwarePackages[pkg]._github}."`
|
||||||
console.log('--- START - SGPT Response for _desc Acquired ---')
|
console.log('--- START - SGPT Response for _desc Acquired ---')
|
||||||
console.log(sgptResponse.stdout)
|
console.log(sgptResponse.stdout)
|
||||||
console.log('--- END - SGPT Response for _desc Acquired ---')
|
console.log('--- END - SGPT Response for _desc Acquired ---')
|
||||||
|
|
13609
scripts/software.yml.backup
Normal file
13609
scripts/software.yml.backup
Normal file
File diff suppressed because one or more lines are too long
3579
software.yml
3579
software.yml
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue