summaryrefslogtreecommitdiffstats
path: root/src/modules/battery.rs
AgeCommit message (Collapse)Author
2020-01-26test(nodejs): Port nodejs module tests from E2E to integraton (#867)Matan Kushner
Replaces the existing nodejs module end-to-end tests with integration tests that don't require preinstalled environmental dependencies. - Moved the tests to the same file as the module they test - Created a render_module utility function for rendering modules within tests - Removed Node.js installation during CI setup - Add Shell to Context to allow for tests to not run shell-specific code
2019-12-13fix(powershell): % sign was prefixed with ` (#730)David Knaack
2019-12-03fix: multiple batteries support in the battery module (#669)Luca Rinaldi
Closes #656
2019-10-16feat: Implement PowerShell support (#470)David Knaack
2019-10-05chore: Import shared types from super (#492)Zhenhui Xie
Changes imports statements to make imports more uniform.
2019-10-04refactor: Go from Rust workspaces to a package with nested packages (#480)Matan Kushner
2019-09-30refactor: Refactoring config (#383)Zhenhui Xie
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-21refactor: Remove dead code in battery module (#405)Thomas O'Donnell
2019-09-20fix: Add display for unknown battery state (#316)谢祯晖
2019-09-12feat: Implement threshold based styling for battery module (#318)谢祯晖
2019-09-09fix: Lazy load git repo and only run module if not disabled (#306)Neil Kistner
A couple of optimizations are done in this PR. One, we now will check config ahead of time to see if a module is disabled before running any module code. Also, we won't try to discover a git repository unless the module requests access to it.
2019-09-07feat: Add the ability to configure per-module color styles (#285)Kevin Song
Add parsing logic, config support, docs, and integration with other modules for custom styling of each module.
2019-08-25fix: battery percentage character on Zsh. #226 (#237)TsubasaKawajiri
on Zsh, battery percentage character would print % this PR fixes print %{ -> %
2019-07-19docs: Add vuepress with initial docs (#99)Tiffany Le-Nguyen
Co-authored-by: Tiffany Le-Nguyen <tlenguyen@expedia.com> Co-authored-by: Matan Kushner <hello@matchai.me>
2019-07-14chore: Refactor getting string values from config (#94)Matan Kushner
2019-07-02feat: Add a `disabled` configuration option for modules (#86)Matan Kushner
• Add support for the disabled configuration option This will allow you to selectively disable modules that you don't want or need. 😄 • Overwrite starship configuration file path with STARSHIP_CONFIG environment variable • Write tests for the two configuration options that are available
2019-06-10Add support for prompt configuration (#62)Matan Kushner
- Create `Config` struct that is added to `Context` when initialized - Read `~/.confg/starship.toml` during initialization (can be updated later to also look at `$XDG_CONFIG_HOME`) - `Context` now has a method for creating modules. This allows us to provide modules with a reference to the configuration specific to that module
2019-05-22feat: Add battery module(#63)Matan Kushner