Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"@oclif/command": "^1",
"@oclif/config": "^1",
"@oclif/errors": "^1.1.2",
"@oclif/plugin-help": "^2",
"@oclif/plugin-plugins": "^1.7.3",
"@oclif/plugin-help": "^2.1.4",
"@oclif/plugin-not-found": "^1.1.4",
"@oclif/plugin-plugins": "^1.7.3",
"@octokit/rest": "^16.1.0",
"ascii-table": "0.0.9",
"chalk": "^2.4.1",
Expand Down Expand Up @@ -127,7 +127,8 @@
"commands": "./src/commands",
"plugins": [
"@oclif/plugin-not-found",
"@oclif/plugin-plugins"
"@oclif/plugin-plugins",
"@oclif/plugin-help"
],
"hooks": {
"init": [
Expand Down
3 changes: 1 addition & 2 deletions src/commands/addons/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { Command } = require('@oclif/command')
const renderShortDesc = require('../../utils/renderShortDescription')
const showHelp = require('../../utils/showHelp')
const { isEmptyCommand } = require('../../utils/checkCommandInputs')

Expand All @@ -15,7 +14,7 @@ class AddonsCommand extends Command {
}
}

AddonsCommand.description = `${renderShortDesc('Handle addon operations')}
AddonsCommand.description = `Handle addon operations
The addons command will help you manage all your netlify addons
`

Expand Down
3 changes: 1 addition & 2 deletions src/commands/deploy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const Command = require('../base')
const renderShortDesc = require('../utils/renderShortDescription')
const openBrowser = require('../utils/open-browser')
const path = require('path')
const chalk = require('chalk')
Expand Down Expand Up @@ -181,7 +180,7 @@ class DeployCommand extends Command {
}
}

DeployCommand.description = `${renderShortDesc(`Create a new deploy from the contents of a folder`)}
DeployCommand.description = `Create a new deploy from the contents of a folder

Deploys from the build settings found in the netlify.toml file, or settings from the API.

Expand Down
3 changes: 1 addition & 2 deletions src/commands/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const chalk = require('chalk')
const { Command } = require('@oclif/command')
const showHelp = require('../../utils/showHelp')
const { isEmptyCommand } = require('../../utils/checkCommandInputs')
const renderShortDesc = require('../../utils/renderShortDescription')

class FunctionsCommand extends Command {
async run() {
Expand All @@ -17,7 +16,7 @@ class FunctionsCommand extends Command {

const name = chalk.greenBright(`\`functions\``)

FunctionsCommand.description = `${renderShortDesc('Manage netlify functions')}
FunctionsCommand.description = `Manage netlify functions
The ${name} command will help you manage the functions in this site
`
FunctionsCommand.examples = [
Expand Down
3 changes: 1 addition & 2 deletions src/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const Command = require('../base')
const SitesWatchCommand = require('./watch')
const configManual = require('../utils/init/config-manual')
const configGithub = require('../utils/init/config-github')
const renderShortDesc = require('../utils/renderShortDescription')
const getRepoData = require('../utils/getRepoData')
const inquirer = require('inquirer')
const SitesCreateCommand = require('./sites/create')
Expand Down Expand Up @@ -231,7 +230,7 @@ git remote add origin https://github.com/YourUserName/RepoName.git
}
}

InitCommand.description = `${renderShortDesc('Configure continuous deployment for a new or existing site')}`
InitCommand.description = `Configure continuous deployment for a new or existing site`

InitCommand.flags = {
manual: flags.boolean({
Expand Down
3 changes: 1 addition & 2 deletions src/commands/link.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const Command = require('../base')
const { flags } = require('@oclif/command')
const renderShortDesc = require('../utils/renderShortDescription')
const path = require('path')
const chalk = require('chalk')
const linkPrompt = require('../utils/link/link-by-prompt')
Expand Down Expand Up @@ -97,7 +96,7 @@ class LinkCommand extends Command {
}
}

LinkCommand.description = `${renderShortDesc('Link a local repo or project folder to an existing site on Netlify')}`
LinkCommand.description = `Link a local repo or project folder to an existing site on Netlify`

LinkCommand.examples = [
'netlify link',
Expand Down
3 changes: 1 addition & 2 deletions src/commands/login.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const Command = require('../base')
const renderShortDesc = require('../utils/renderShortDescription')
const chalk = require('chalk')

class LoginCommand extends Command {
Expand All @@ -22,7 +21,7 @@ class LoginCommand extends Command {
}
}

LoginCommand.description = `${renderShortDesc('Login to your Netlify account')}
LoginCommand.description = `Login to your Netlify account

Opens a web browser to acquire an OAuth token. Use NETLIFY_WEB_UI to set the base URL of the ticket URL.
`
Expand Down
3 changes: 1 addition & 2 deletions src/commands/logout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const Command = require('../base')
const renderShortDesc = require('../utils/renderShortDescription')
const { track } = require('../utils/telemetry')

class LogoutCommand extends Command {
Expand All @@ -20,7 +19,7 @@ class LogoutCommand extends Command {
}
}

LogoutCommand.description = `${renderShortDesc('Logout of your Netlify account')}`
LogoutCommand.description = `Logout of your Netlify account`

LogoutCommand.hidden = true

Expand Down
3 changes: 1 addition & 2 deletions src/commands/open/admin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const Command = require('../../base')
const openBrowser = require('../../utils/open-browser')
const renderShortDesc = require('../../utils/renderShortDescription')

class OpenAdminCommand extends Command {
async run() {
Expand Down Expand Up @@ -42,7 +41,7 @@ Run \`netlify link\` to connect to this folder to a site`)
}
}

OpenAdminCommand.description = `${renderShortDesc('Opens current site admin UI in Netlify')}`
OpenAdminCommand.description = `Opens current site admin UI in Netlify`

OpenAdminCommand.examples = ['netlify open:admin']

Expand Down
3 changes: 1 addition & 2 deletions src/commands/open/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const Command = require('../../base')
const OpenAdminCommand = require('./admin')
const renderShortDesc = require('../../utils/renderShortDescription')
const showHelp = require('../../utils/showHelp')
const { isEmptyCommand } = require('../../utils/checkCommandInputs')

Expand All @@ -16,7 +15,7 @@ class OpenCommand extends Command {
}
}

OpenCommand.description = `${renderShortDesc('Open settings for the site linked to the current folder')}`
OpenCommand.description = `Open settings for the site linked to the current folder`

OpenCommand.examples = [
'netlify open:admin',
Expand Down
3 changes: 1 addition & 2 deletions src/commands/open/site.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const Command = require('../../base')
const openBrowser = require('../../utils/open-browser')
const renderShortDesc = require('../../utils/renderShortDescription')

class OpenAdminCommand extends Command {
async run() {
Expand Down Expand Up @@ -35,7 +34,7 @@ Run \`netlify link\` to connect to this folder to a site`)
}
}

OpenAdminCommand.description = `${renderShortDesc('Opens current site url in browser')}`
OpenAdminCommand.description = `Opens current site url in browser`

OpenAdminCommand.examples = ['netlify open:site']

Expand Down
3 changes: 1 addition & 2 deletions src/commands/sites/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const isEmpty = require('lodash.isempty')
const prettyjson = require('prettyjson')
const chalk = require('chalk')
const Command = require('../../base')
const renderShortDesc = require('../../utils/renderShortDescription')
const { track } = require('../../utils/telemetry')

class SitesCreateCommand extends Command {
Expand Down Expand Up @@ -82,7 +81,7 @@ class SitesCreateCommand extends Command {
}
}

SitesCreateCommand.description = `${renderShortDesc('Create an empty site (advanced)')}
SitesCreateCommand.description = `Create an empty site (advanced)

Create a blank site that isn't associated with any git remote. Does not link to the current working directory.
`
Expand Down
3 changes: 1 addition & 2 deletions src/commands/sites/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { Command } = require('@oclif/command')
const renderShortDesc = require('../../utils/renderShortDescription')
const showHelp = require('../../utils/showHelp')
const { isEmptyCommand } = require('../../utils/checkCommandInputs')

Expand All @@ -15,7 +14,7 @@ class SitesCommand extends Command {
}
}

SitesCommand.description = `${renderShortDesc('Handle various site operations')}
SitesCommand.description = `Handle various site operations
The sites command will help you manage all your sites
`

Expand Down
3 changes: 1 addition & 2 deletions src/commands/sites/list.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { flags } = require('@oclif/command')
const chalk = require('chalk')
const Command = require('../../base')
const renderShortDesc = require('../../utils/renderShortDescription')

class SitesListCommand extends Command {
async run() {
Expand Down Expand Up @@ -60,7 +59,7 @@ class SitesListCommand extends Command {
}
}

SitesListCommand.description = `${renderShortDesc('List all sites you have access to')}`
SitesListCommand.description = `List all sites you have access to`

SitesListCommand.flags = {
json: flags.boolean({
Expand Down
3 changes: 1 addition & 2 deletions src/commands/status/hooks.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const Command = require('../../base')
const renderShortDesc = require('../../utils/renderShortDescription')
const prettyjson = require('prettyjson')
const get = require('lodash.get')

Expand Down Expand Up @@ -51,6 +50,6 @@ Site Hook Status │
}
}

StatusHooksCommand.description = `${renderShortDesc('Print hook information of the linked site')}`
StatusHooksCommand.description = `Print hook information of the linked site`

module.exports = StatusHooksCommand
3 changes: 1 addition & 2 deletions src/commands/status/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const Command = require('../../base')
const renderShortDesc = require('../../utils/renderShortDescription')
const prettyjson = require('prettyjson')
const get = require('lodash.get')
const chalk = require('chalk')
Expand Down Expand Up @@ -78,6 +77,6 @@ class StatusCommand extends Command {
}
}

StatusCommand.description = `${renderShortDesc('Print status information')}`
StatusCommand.description = `Print status information`

module.exports = StatusCommand
3 changes: 1 addition & 2 deletions src/commands/unlink.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const Command = require('../base')
const renderShortDesc = require('../utils/renderShortDescription')
const { track } = require('../utils/telemetry')

class UnlinkCommand extends Command {
Expand Down Expand Up @@ -29,6 +28,6 @@ class UnlinkCommand extends Command {
}
}

UnlinkCommand.description = `${renderShortDesc('Unlink a local folder from a Netlify site')}`
UnlinkCommand.description = `Unlink a local folder from a Netlify site`

module.exports = UnlinkCommand
3 changes: 1 addition & 2 deletions src/commands/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const pWaitFor = require('p-wait-for')
const cli = require('cli-ux').default
const prettyjson = require('prettyjson')
const chalk = require('chalk')
const renderShortDesc = require('../utils/renderShortDescription')

class SitesWatchCommand extends Command {
async run() {
Expand Down Expand Up @@ -63,7 +62,7 @@ class SitesWatchCommand extends Command {
}
}

SitesWatchCommand.description = `${renderShortDesc('Watch for site deploy to finish')}`
SitesWatchCommand.description = `Watch for site deploy to finish`

SitesWatchCommand.examples = [
`netlify watch`,
Expand Down
9 changes: 0 additions & 9 deletions src/utils/renderShortDescription.js

This file was deleted.