Skip to content

Test#12

Merged
lkhorasandzhian merged 2 commits into
mainfrom
test
Apr 20, 2026
Merged

Test#12
lkhorasandzhian merged 2 commits into
mainfrom
test

Conversation

@lkhorasandzhian

Copy link
Copy Markdown
Owner

Minor fix with legacy names.

AI-assisted: prepared with Codex by OpenAI
AI-assisted: prepared with Codex by OpenAI
@lkhorasandzhian lkhorasandzhian self-assigned this Apr 20, 2026
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@lkhorasandzhian lkhorasandzhian added develop Powershell scripts are created/edited/deleted test Test some implemented functions git Configure some git features linter Linter for scripts labels Apr 20, 2026

@lkhorasandzhian lkhorasandzhian left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Everything is good. Ready to merge!

@lkhorasandzhian

Copy link
Copy Markdown
Owner Author

@self-approval /approve

@lkhorasandzhian lkhorasandzhian merged commit ce37ccf into main Apr 20, 2026
3 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2ec4e8b9bd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Set-Alias -Name line-counter -Value Get-LineCount -Option AllScope
Set-Alias -Name super-counter -Value Get-CodeStats -Option AllScope
Set-Alias -Name tree-color -Value Show-ColorTree -Option AllScope
Set-Alias -Name ll -Value Get-ChildItem -Scope Global -Option AllScope

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Respect import scope when creating legacy aliases

Using Set-Alias ... -Scope Global here forces aliases into the global session even when callers intentionally use Import-Module -Scope Local. In that scenario, aliases like la/file-counter leak outside the caller’s scope and can shadow existing commands for the rest of the session, which breaks normal module scoping behavior. Keep aliases module-scoped and export them through module exports instead of hard-coding global scope.

Useful? React with 👍 / 👎.

'super-counter',
'tree-color'
)
AliasesToExport = @()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Export legacy aliases from the manifest again

Setting AliasesToExport to an empty array removes alias metadata from module discovery, so alias names are no longer advertised as exported commands. In a fresh session this breaks alias-based module autoload (for example, calling file-counter won’t trigger loading this module), which is a regression from the prior behavior where legacy aliases were exported.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

develop Powershell scripts are created/edited/deleted git Configure some git features linter Linter for scripts test Test some implemented functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants