From 046743071dd0f2c1d283eadac2880807e83ead14 Mon Sep 17 00:00:00 2001 From: Matthew McGinn Date: Fri, 3 Jan 2020 13:37:55 -0500 Subject: [PATCH] meta: Americanize all spellings Connects-to: https://github.com/balena-io/docs/issues/1300 Change-type: patch Signed-off-by: Matthew McGinn --- doc/cli.markdown | 6 +++--- lib/actions-oclif/env/rm.ts | 2 +- lib/actions/preload.coffee | 2 +- lib/actions/push.ts | 4 ++-- lib/app-common.ts | 2 +- lib/preparser.ts | 2 +- tests/balena-api-mock.ts | 2 +- tests/utils/ignore.spec.ts | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/cli.markdown b/doc/cli.markdown index 5d64968d..2d101a14 100644 --- a/doc/cli.markdown +++ b/doc/cli.markdown @@ -719,7 +719,7 @@ used alongside the --device option to select a device-specific service or configuration variable. Interactive confirmation is normally asked before the variable is deleted. -The --yes option disables this behaviour. +The --yes option disables this behavior. Examples: @@ -1642,7 +1642,7 @@ flags can be used together. When pushing to a local device a live session will be started. The project source folder is watched for filesystem events, and changes to files and folders are automatically synchronized to the running -containers. The synchronisation is only in one direction, from this machine to +containers. The synchronization is only in one direction, from this machine to the device, and changes made on the device itself may be overwritten. This feature requires a device running supervisor version v9.7.0 or greater. @@ -1709,7 +1709,7 @@ file from the balena directory will be used (usually $HOME/.balena/secrets.yml|. #### --nolive Don't run a live session on this push. The filesystem will not be monitored, and changes -will not be synchronised to any running containers. Note that both this flag and --detached +will not be synchronized to any running containers. Note that both this flag and --detached and required to cause the process to end once the initial build has completed. #### --detached, -d diff --git a/lib/actions-oclif/env/rm.ts b/lib/actions-oclif/env/rm.ts index 7a48ae87..4c76f9d4 100644 --- a/lib/actions-oclif/env/rm.ts +++ b/lib/actions-oclif/env/rm.ts @@ -44,7 +44,7 @@ export default class EnvRmCmd extends Command { ${ec.rmRenameHelp.split('\n').join('\n\t\t')} Interactive confirmation is normally asked before the variable is deleted. - The --yes option disables this behaviour. + The --yes option disables this behavior. `; public static examples = [ '$ balena env rm 123123', diff --git a/lib/actions/preload.coffee b/lib/actions/preload.coffee index 8b3ea4b2..3572ed85 100644 --- a/lib/actions/preload.coffee +++ b/lib/actions/preload.coffee @@ -111,7 +111,7 @@ offerToDisableAutomaticUpdates = (application, commit, pinDevice) -> message = ''' This application is set to automatically update all devices to the current version. - This might be unexpected behaviour: with this enabled, the preloaded device will still + This might be unexpected behavior: with this enabled, the preloaded device will still download and install the current release once it is online. Do you want to disable automatic updates for this application? diff --git a/lib/actions/push.ts b/lib/actions/push.ts index cd8eb950..55e5ef34 100644 --- a/lib/actions/push.ts +++ b/lib/actions/push.ts @@ -142,7 +142,7 @@ export const push: CommandDefinition< When pushing to a local device a live session will be started. The project source folder is watched for filesystem events, and changes to files and folders are automatically synchronized to the running - containers. The synchronisation is only in one direction, from this machine to + containers. The synchronization is only in one direction, from this machine to the device, and changes made on the device itself may be overwritten. This feature requires a device running supervisor version v9.7.0 or greater. @@ -203,7 +203,7 @@ export const push: CommandDefinition< boolean: true, description: stripIndent` Don't run a live session on this push. The filesystem will not be monitored, and changes - will not be synchronised to any running containers. Note that both this flag and --detached + will not be synchronized to any running containers. Note that both this flag and --detached and required to cause the process to end once the initial build has completed.`, }, { diff --git a/lib/app-common.ts b/lib/app-common.ts index 0f33c473..72342da0 100644 --- a/lib/app-common.ts +++ b/lib/app-common.ts @@ -48,7 +48,7 @@ function checkNodeVersion() { Warning: Node version "${ process.version }" does not match required versions "${validNodeVersions}". - This may cause unexpected behaviour. To upgrade Node, visit: + This may cause unexpected behavior. To upgrade Node, visit: https://nodejs.org/en/download/ ------------------------------------------------------------------------------ `); diff --git a/lib/preparser.ts b/lib/preparser.ts index e2a3ca9b..d07d6eba 100644 --- a/lib/preparser.ts +++ b/lib/preparser.ts @@ -19,7 +19,7 @@ import { stripIndent } from 'common-tags'; import { exitWithExpectedError } from './utils/patterns'; export interface AppOptions { - // Prevent the default behaviour of flushing stdout after running a command + // Prevent the default behavior of flushing stdout after running a command noFlush?: boolean; } diff --git a/tests/balena-api-mock.ts b/tests/balena-api-mock.ts index 44ff8b2c..5e1547a0 100644 --- a/tests/balena-api-mock.ts +++ b/tests/balena-api-mock.ts @@ -47,7 +47,7 @@ export class BalenaAPIMock { this.scope.done(); // Remove 'no match' handler, for tests using nock without this module nock.emitter.removeListener('no match', this.handleUnexpectedRequest); - // Restore unmocked behaviour + // Restore unmocked behavior nock.cleanAll(); nock.restore(); } diff --git a/tests/utils/ignore.spec.ts b/tests/utils/ignore.spec.ts index 1af050c9..e5ee0236 100644 --- a/tests/utils/ignore.spec.ts +++ b/tests/utils/ignore.spec.ts @@ -5,7 +5,7 @@ import { FileIgnorer, IgnoreFileType } from '../../build/utils/ignore'; // Note that brack notation is used intentionally when accessing private members // of the FileIgnorer class to prevent a Typescript compilation error (this -// behaviour is by design: see +// behavior is by design: see // https://github.com/microsoft/TypeScript/issues/19335 ) describe('File ignorer', function() { it('should detect ignore files', function() {