Skip to content

Conversation

StefanGreve
Copy link
Member

@StefanGreve StefanGreve commented Dec 1, 2024

TODO

  • Add proper unit tests
  • Revise documentation
  • Export aliases
  • fix test discovery in ubuntu-latest?
  • prevent SQL injection
  • resolve Import-Module error with SQLite? Consider using https://github.com/mithrandyr/SimplySql instead

@StefanGreve StefanGreve added the enhancement New feature or request label Dec 1, 2024
@StefanGreve StefanGreve self-assigned this Dec 1, 2024
$QueryBuilder.Add("UPDATE TodoList SET ")

if ($Project) {
$QueryBuilder.Add("Project = '${Project}'$(if ($Description -or $Priority -or $Status -or $DueDate) {','} else {''})")
$QueryBuilder.Add("Project='${Project}'$(($Description -or $Priority -or $Status -or $DueDate) ? "," : [string]::Empty)")
Copy link
Member Author

Choose a reason for hiding this comment

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

This could be problematic.


#region User Completer

$UserCompleterCommands = @(
Copy link
Member Author

Choose a reason for hiding this comment

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

Regression: This doesn't seem to work anymore.

$RegisterProjectParameter = {
param($Command, $Parameter, $WordToComplete, $CommandAst, $FakeBoundParameters)

$Projects = Get-TodoList | Select-Object -Property Project -Unique
Copy link
Member Author

Choose a reason for hiding this comment

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

Use -ExpandProperty here.

}

# Script module or binary module file associated with this manifest.
RootModule = 'Todo.psm1'
Copy link
Member Author

@StefanGreve StefanGreve Dec 1, 2024

Choose a reason for hiding this comment

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

  • Fix file formatting.

than ten tasks in your TODO list, return the entire TODO list instead.
#>
[Alias("gtask")]
[OutputType("Task")]
Copy link
Member Author

Choose a reason for hiding this comment

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

  • Use proper type in all Cmdlets.

Copy link
Member Author

Choose a reason for hiding this comment

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

  • Add the other status badges for unit tests and deployments here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant