Skip to content

Commit

Permalink
fix: correct options formatting in configuration
Browse files Browse the repository at this point in the history
- Resolved inconsistencies in the formatting of options.
- Ensured proper alignment and indentation for readability.
  • Loading branch information
bc-0dp committed Dec 12, 2024
1 parent 81e24c6 commit 74f1927
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions bin/stencil-push.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,34 @@ import { prepareCommand, printCliResultErrorAndExit } from '../lib/cliCommon.js'

program
.version(PACKAGE_INFO.version)
.option('-f, --file [filename]', 'specify the filename of the bundle to upload')
.option('-s, --save [filename]', 'specify the filename to save the bundle as')
.option(

Check warning on line 10 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Replace `⏎········'-f,·--file·[filename]',⏎········'specify·the·filename·of·the·bundle·to·upload'⏎····` with `'-f,·--file·[filename]',·'specify·the·filename·of·the·bundle·to·upload'`

Check warning on line 10 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Replace `⏎········'-f,·--file·[filename]',⏎········'specify·the·filename·of·the·bundle·to·upload'⏎····` with `'-f,·--file·[filename]',·'specify·the·filename·of·the·bundle·to·upload'`
'-f, --file [filename]',
'specify the filename of the bundle to upload'
)
.option(

Check warning on line 14 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Replace `⏎········'-s,·--save·[filename]',⏎········'specify·the·filename·to·save·the·bundle·as'⏎····` with `'-s,·--save·[filename]',·'specify·the·filename·to·save·the·bundle·as'`

Check warning on line 14 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Replace `⏎········'-s,·--save·[filename]',⏎········'specify·the·filename·to·save·the·bundle·as'⏎····` with `'-s,·--save·[filename]',·'specify·the·filename·to·save·the·bundle·as'`
'-s, --save [filename]',
'specify the filename to save the bundle as'
)
.option(

Check warning on line 18 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Replace `⏎········'-S,·--source-maps',⏎········'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging',⏎····)·····` with `'-S,·--source-maps',·'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging')`

Check warning on line 18 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Replace `⏎········'-S,·--source-maps',⏎········'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging',⏎····)·····` with `'-S,·--source-maps',·'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging')`
'-S, --source-maps',
'Include source-maps in the bundle. This is useful for debugging',
)
.option('-a, --activate [variationname]', 'specify the variation of the theme to activate')
.option('-d, --delete', 'delete oldest private theme if upload limit reached')
.option(

Check warning on line 22 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Replace `⏎········'-a,·--activate·[variationname]',⏎········'specify·the·variation·of·the·theme·to·activate'⏎····` with `'-a,·--activate·[variationname]',·'specify·the·variation·of·the·theme·to·activate'`

Check warning on line 22 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Replace `⏎········'-a,·--activate·[variationname]',⏎········'specify·the·variation·of·the·theme·to·activate'⏎····` with `'-a,·--activate·[variationname]',·'specify·the·variation·of·the·theme·to·activate'`
'-a, --activate [variationname]',
'specify the variation of the theme to activate'
)
.option(

Check warning on line 26 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Replace `⏎········'-d,·--delete',⏎········'delete·oldest·private·theme·if·upload·limit·reached'⏎····` with `'-d,·--delete',·'delete·oldest·private·theme·if·upload·limit·reached'`

Check warning on line 26 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Replace `⏎········'-d,·--delete',⏎········'delete·oldest·private·theme·if·upload·limit·reached'⏎····` with `'-d,·--delete',·'delete·oldest·private·theme·if·upload·limit·reached'`
'-d, --delete',
'delete oldest private theme if upload limit reached'
)
.option(
'-c, --channel_ids <channelIds...>',
'specify the channel IDs of the storefront to push the theme to',
)
.option('-allc, --all_channels', 'push a theme to all available channels');
.option(

Check warning on line 34 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Replace `⏎········'-allc,·--all_channels',⏎········'push·a·theme·to·all·available·channels'⏎····` with `'-allc,·--all_channels',·'push·a·theme·to·all·available·channels'`

Check warning on line 34 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Replace `⏎········'-allc,·--all_channels',⏎········'push·a·theme·to·all·available·channels'⏎····` with `'-allc,·--all_channels',·'push·a·theme·to·all·available·channels'`
'-allc, --all_channels',
'push a theme to all available channels'
);
const cliOptions = prepareCommand(program);
const options = {
apiHost: cliOptions.host,
Expand Down

0 comments on commit 74f1927

Please sign in to comment.