Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Fixing output file path messages#296

Merged
munozemilio merged 1 commit into4.6microsoft/botframework-cli:4.6from
emimunoz/rc-1microsoft/botframework-cli:emimunoz/rc-1Copy head branch name to clipboard
Oct 29, 2019
Merged

Fixing output file path messages#296
munozemilio merged 1 commit into4.6microsoft/botframework-cli:4.6from
emimunoz/rc-1microsoft/botframework-cli:emimunoz/rc-1Copy head branch name to clipboard

Conversation

@munozemilio
Copy link
Contributor

No description provided.

Copy link
Contributor

@christopheranderson christopheranderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some nits but 🚢


import {Command, flags} from '@oclif/command'

const path = require('path')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why not use import?

let filePathAlterations = await file.generateNewFilePath(flags.out, flags.in, isQnA, 'alterations_', fileExtEnum.QnAFile)
let validatedPath = utils.validatePath(filePathAlterations, '', flags.force)
await fs.writeFile(validatedPath, JSON.stringify(convertedObject.finalQnAAlterations, null, 2), 'utf-8')
const validatedPathAlter = utils.validatePath(filePathAlterations, '', flags.force)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: validatedPathAlter is less readable than validatedAlterationsPath

@munozemilio munozemilio merged commit 8ca578e into 4.6 Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.