-
-
Notifications
You must be signed in to change notification settings - Fork 315
Open
Labels
PRs (with tests!) welcomecommand interfaceuse casenot quite a feature and not quite a bug, something we just didn't think ofnot quite a feature and not quite a bug, something we just didn't think of
Description
Describe the use case
alembic history currently prints out the history of revisions to STDOUT in reverse-chronological order. personally as a user, i am a lot more interested in the recent revisions than the initial one and it can be not particularly ergonomic to have to scroll up to look at the recent commits.
Databases / Backends / Drivers targeted
all of them?
Example Use
included in the use case.
Additional context
i think there can be two different ways to go about implementing this:
- we could add a flag
--reverseto reverse the output, although this might be of relatively small value sincetail -ron macos ortacon linux would achieve exactly the same via piping (unlessalembic historyoutput decides to add a header or something) - the better way, i think, is to make it scrollable via
less-like interface likegit logdoes by default. since the output stays exactly the same, this should be backwards-compatible while achieving the goal of allowing the users to look at the most recent revision with no extra effort beyond just typingalembic revision.
Have a nice day!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
PRs (with tests!) welcomecommand interfaceuse casenot quite a feature and not quite a bug, something we just didn't think ofnot quite a feature and not quite a bug, something we just didn't think of