-
Notifications
You must be signed in to change notification settings - Fork 0
Module Refactoring #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
abeb2d3
to
1268663
Compare
$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)") |
There was a problem hiding this comment.
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 = @( |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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")] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
TODO
ubuntu-latest
?Import-Module
error withSQLite
? Consider using https://github.com/mithrandyr/SimplySql instead