Scoop-Core icon indicating copy to clipboard operation
Scoop-Core copied to clipboard

debt: Ditch `core.ps1`

Open Ash258 opened this issue 4 years ago • 0 comments

  • [x] Drop Reset-Alias
  • [ ] Circular deps
  • [ ] core.ps1 -> init.ps1/bootstrap.ps1 and real core functions
    • Bootstrap will be executed only in:
      • test init?
      • scoop.ps1
      • binaries
  • [ ] Replace all dot sourcing with check:
@(
    @('manifest', 'manifest_path'),
    @('Helpers', 'Test...')
) | ForEach-Object {
    if (!(Get-Command $_[1] -ErrorAction 'SilentlyContinue')) {
         . (Join-Path $PSScriptRoot "..\lib\${_}.ps1")
    }
}

Ash258 avatar May 09 '20 15:05 Ash258