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

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

Merged
ramya-rao-a merged 4 commits intomasterfrom
gomodifytags
Mar 23, 2017
Merged

Use gomodifytags to add/remove tags from struct fields#880
ramya-rao-a merged 4 commits intomasterfrom
gomodifytags

Conversation

@ramya-rao-a
Copy link
Copy Markdown
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

@ramya-rao-a ramya-rao-a requested a review from roblourens March 21, 2017 22:37
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
Copy Markdown
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
Copy Markdown
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