Skip to content

Commit

Permalink
Rename to use 'tachyon'
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Dec 6, 2024
1 parent f568a10 commit fb92a23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/cli/flash.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ module.exports = ({ commandProcessor, root }) => {
'port': {
describe: 'Use this serial port instead of auto-detecting. Useful if there are more than 1 connected device. Only available for serial'
},
'linux' : {
'tachyon' : {
boolean: true,
description: 'Flash one of the latest linux boards'
description: 'Flash Tachyon'
},
'verbose' : {
boolean: false,
Expand All @@ -63,7 +63,7 @@ module.exports = ({ commandProcessor, root }) => {
'$0 $command --local application.zip': 'Flash the pre-compiled binary and assets from the bundle to the device connected over USB',
'$0 $command --local tinker': 'Flash the default Tinker app to the device connected over USB',
'$0 $command --usb firmware.bin': 'Flash the binary over USB',
'$0 $command --linux /path/to/unpackaged-tool-and-files': 'Flash linux boards from the files in the specified directory. Use --verbose to see the progress',
'$0 $command --tachyon /path/to/unpackaged-tool-and-files': 'Flash Tachyon from the files in the specified directory. Use --verbose to see the progress',
},
epilogue: unindent(`
When passing the --local flag, Device OS will be updated if the version on the device is outdated.
Expand Down
10 changes: 5 additions & 5 deletions src/cmd/flash.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ module.exports = class FlashCommand extends CLICommandBase {
port,
yes,
verbose,
linux,
tachyon,
'application-only': applicationOnly
}) {
if (!linux && !device && !binary && !local) {
if (!tachyon && !device && !binary && !local) {
// if no device nor files are passed, show help
throw usageError('You must specify a device or a file');
}
Expand All @@ -59,14 +59,14 @@ module.exports = class FlashCommand extends CLICommandBase {
} else if (local) {
let allFiles = binary ? [binary, ...files] : files;
await this.flashLocal({ files: allFiles, applicationOnly, target });
} else if (linux) {
await this.flashLinux({ verbose, binary });
} else if (tachyon) {
await this.flashTachyon({ verbose, binary });
} else {
await this.flashCloud({ device, files, target });
}
}

async flashLinux({ verbose, binary }) {
async flashTachyon({ verbose, binary }) {
this.ui.write(`Ensure only one device is connected to a computer${os.EOL}`);

let unpackToolFolder = '';
Expand Down

0 comments on commit fb92a23

Please sign in to comment.