-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2587 from openedx/ags/sync-alpha-fix
[fix] Sync alpha with master
- Loading branch information
Showing
4,889 changed files
with
82,259 additions
and
81,241 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env node | ||
const chalk = require('chalk'); | ||
const themeCommand = require('../lib/install-theme'); | ||
|
||
// command: executor function | ||
const COMMANDS = { | ||
'install-theme': themeCommand, | ||
}; | ||
|
||
(async () => { | ||
const [command] = process.argv.slice(2); | ||
const executor = COMMANDS[command]; | ||
|
||
if (!executor) { | ||
// eslint-disable-next-line no-console | ||
console.log(chalk.red.bold('Unknown command. Usage: paragon <command>')); | ||
return; | ||
} | ||
|
||
try { | ||
await executor(); | ||
} catch (error) { | ||
// eslint-disable-next-line no-console | ||
console.error(chalk.red.bold('An error occurred:', error.message)); | ||
process.exit(1); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.