Skip to content

refactor: defined runCommandFile for SystemShell#68

Closed
alestiago wants to merge 1 commit intorefactor/enhanced-enumfrom
refactor/enhanced-enum-rcfile
Closed

refactor: defined runCommandFile for SystemShell#68
alestiago wants to merge 1 commit intorefactor/enhanced-enumfrom
refactor/enhanced-enum-rcfile

Conversation

@alestiago
Copy link
Copy Markdown
Contributor

Status

READY

Description

Uses enhanced enumeration feature to move the logic from CompletionInstallation that locates an RC file from the a shell to SystemShell.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@alestiago alestiago self-assigned this May 10, 2023
@alestiago alestiago added the refactor A code change that neither fixes a bug nor add a feature label May 10, 2023
Copy link
Copy Markdown
Contributor

@renancaraujo renancaraujo left a comment

Choose a reason for hiding this comment

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

What is the argument for this change?

The completion configuration class exists to contain the parameters to link a shell completion system with a client application. In other words: everything that involves files, its paths and content that concern the installation of completion scripts should be on ShellCompletionConfiguration.

The system shell enum is used across the parser side too.

logger.info(
'Adding dart cli completion config entry '
'to $_shellRCFilePath',
'to ${shellRunCommandFile.path}',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What good is having run command doing here? Most people know those files as RC files. Unnecessary change.

@alestiago alestiago closed this May 10, 2023
@renancaraujo renancaraujo deleted the refactor/enhanced-enum-rcfile branch August 31, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor A code change that neither fixes a bug nor add a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants