-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(command-lm): add uninstall command (#1879)
- Loading branch information
Showing
3 changed files
with
87 additions
and
16 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const Command = require('../../utils/command') | ||
const { uninstall } = require('../../utils/lm/install') | ||
|
||
class LmUninstallCommand extends Command { | ||
async run() { | ||
await this.config.runHook('analytics', { | ||
eventName: 'command', | ||
payload: { | ||
command: 'lm:uninstall', | ||
}, | ||
}) | ||
|
||
await uninstall() | ||
} | ||
} | ||
|
||
LmUninstallCommand.aliases = ['lm:remove'] | ||
LmUninstallCommand.hidden = true | ||
|
||
LmUninstallCommand.description = | ||
'Uninstalls Netlify git credentials helper and cleans up any related configuration changes made by the install command.' | ||
|
||
module.exports = LmUninstallCommand |
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