Open
Conversation
I created the `activity order` CLI command to allow users to set the priority or order of activities in their Activity Inventory. The command will display an interactive terminal UI where users can select and reorder activities. The new order will be saved to the database and reflected in the Activity Inventory display.
I added command line arguments to make it possible to reorder a single activity before or after another activity. This allows users to prioritize their tasks directly from the command line interface.
I refactored the source code to remove duplicated code in the functions that moved an activity before or after another activity.
🐳 Container Image BuiltYour PR container image has been built and published: Supported architectures: linux/amd64, linux/arm64 Usage: docker run --rm ghcr.io/nakedsoftware/time:pr-50 --help
|
Member
Author
|
/build-macos |
✅ macOS ARM64 Build CompleteBuild Details:
Download:
Usage after download: tar -xzf time-macos-arm64-pr-50-bdc82fa.tar.gz
./time-macos-arm64 --helpBuild triggered by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I implemented the
time activity ordercommand that allows users to prioritze activities. Theordercommand has two modes. The first mode will display an interactive list of the activities in the Activity Inventory that are sorted by priority. The user can select and move an activity in the list. The other mode is a CLI command that allows the user to specify the ID of the activity to move and the ID of the activity to move the first activity either before or after.Closes #41