Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Use gomodifytags to add/remove tags from struct fields #880

Merged
merged 4 commits into from
Mar 23, 2017

Conversation

ramya-rao-a
Copy link
Contributor

@ramya-rao-a ramya-rao-a commented Mar 21, 2017

Fixes #433

See #433 to follow the discussion on the design for this feature

let input = editor.document.fileName + '\n' + fileContents.length + '\n' + fileContents;
let p = cp.execFile(gomodifytags, args, (err, stdout, stderr) => {
if (err && (<any>err).code === 'ENOENT') {
promptForMissingTool('gomodifytags');
Copy link
Member

Choose a reason for hiding this comment

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

Can you detect whether the tool is installed earlier, before the user has entered tag names and everything?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could, but this is the model we follow for all other tools, so will not be changing this unless we change the rest of the places

@ramya-rao-a ramya-rao-a merged commit 9ea54dd into master Mar 23, 2017
@ramya-rao-a ramya-rao-a deleted the gomodifytags branch January 9, 2018 03:19
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.

3 participants