summaryrefslogtreecommitdiffstats
path: root/src/modules/character.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-10-20refactor: improve as-a-library usage by removing ArgMatches depe… (#547)Barnaby Keene
This removes ArgMatches from the Context struct and replaces it with a simple HashMap. This work is towards getting Starship in a better place for use as a library in other shells written in Rust so they don't need to use a command-line interface to invoke and configure things. Contributes to #521
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-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-31Support vicmd_symbol in fish-shell (#254)Quinn Strahl
2019-08-18fix: Set default prompt character to ❯ (#177)Kevin Song
2019-08-17feat: Display Vi mode as PROMPT (#169)Shu Kutsuzawa
Add Vi-mode indicator for zsh
2019-08-10feat: Add configuration to change the character for non-zero sta… (#133)Kevin Song
Prompt can now switch characters in addition to switching character color. Add configuration options in so that users can do either, both, or neither.
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-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-06-06Refactor integration tests (#71)Matan Kushner
- Create subcommands to be able to print modules independently - `starship prompt` will print the full prompt - `starship module <MODULE_NAME>` will print a specific module e.g. `starship module python` - Added `--path` flag to print the prompt or modules without being in a specific directory - Added `--status` flag to provide the status of the last command, instead of requiring it as an argument - Refactored integration tests to be end-to-end tests, since there was no way in integration tests to set the environment variables for a specific command, which was required for the `username` module - Moved e2e tests to `tests/testsuite` to allow for a single binary to be built - Tests will build/run faster - No more false positives for unused functions - Added tests for `username` - Removed codecov + tarpaulin 😢
2019-05-01Refactor segments into modules (#40)Matan Kushner
2019-04-19Use "context" to contain run details (#14)Matan Kushner
* Create "context" to contain run details * Use context in tests and benchmarks
2019-04-15Add integration tests (#6)Matan Kushner
### Changed - Added current_dir param to segments to make them more testable - Moved all existing integration tests to a `tests/` dir ### Added - A whole bunch of new integration tests
2019-04-12Make segments optionalsMatan Kushner
2019-04-12Use copy to return segmentMatan Kushner
2019-04-12Use builder pattern in char sectionMatan Kushner
2019-04-12Add builder pattern for segmentMatan Kushner
2019-04-10Begin writing Node sectionMatan Kushner
2019-04-07A bit of tidying upMatan Kushner
2019-04-04Add stringify_segment rustdocMatan Kushner