Skip to content

Commit

Permalink
chore(release): v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
domsleee committed Apr 11, 2023
1 parent bcde05b commit 84bcbde
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "posh-tabcomplete"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Blazing fast tab completion for powershell."
Expand Down
77 changes: 39 additions & 38 deletions resource/completions.nu
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,45 @@ export extern "git cherry-pick" [
--skip # Skip the current commit and continue with the rest of the sequence
]

# List, create, or delete branches
extern "git branch" [
target: string@"nu-complete git branches"
--env-filter # This filter may be used if you only need to modify the environment
--tree-filter # This is the filter for rewriting the tree and its contents
--index-filter # This is the filter for rewriting the index
--parent-filter # This is the filter for rewriting the commit
--msg-filter # This is the filter for rewriting the commit messages
--commit-filter # This is the filter for performing the commit
--tag-name-filter # This is the filter for rewriting tag names
--subdirectory-filter # Only look at the history which touches the given subdirectory
--prune-empty # Ignore empty commits generated by filters
--original # Use this option to set the namespace where the original commits will be stored
--force(-f) # Filter even with refs in refs/original or existing temp directory
--add # Add to the list of currently tracked branches instead of replacing it
--remotes(-r) # Shows the remote tracking branches
--all(-a) # Show both remote-tracking branches and local branches
--current # Includes the current branch to the list of revs to be shown
--topo-order # Makes commits appear in topological order
--date-order # Makes commits appear in date order
--sparse # Shows merges only reachable from one tip
--no-name # Do not show naming strings for each commit
--sha1-name # Name commits with unique prefix
--no-color # Turn off colored output
--delete(-d) # Delete branch
--force(-f) # Reset branch even if it already exists
--move(-m) # Rename branch
--copy(-c) # Copy branch
--all(-a) # Lists both local and remote branches
--track(-t) # Track remote branch
--no-track # Do not track remote branch
--set-upstream-to # Set remote branch to track
--merged # List branches that have been merged
--no-merged # List branches that have not been merged
--unset-upstream # Remove branch upstream information
--branch(-b) # Specify the branch to use
--default(-d) # Use default branch of the submodule
]

### FROM AUTOCOMPLETIONS https://github.com/nushell/nu_scripts/tree/main/custom-completions/auto-generate
### Please fix these if they are wrong

Expand Down Expand Up @@ -502,44 +541,6 @@ extern "git bisect" [
----term-bad # Print the term for the new state
...args
]
# List, create, or delete branches
extern "git branch" [
--env-filter # This filter may be used if you only need to modify the environment
--tree-filter # This is the filter for rewriting the tree and its contents
--index-filter # This is the filter for rewriting the index
--parent-filter # This is the filter for rewriting the commit
--msg-filter # This is the filter for rewriting the commit messages
--commit-filter # This is the filter for performing the commit
--tag-name-filter # This is the filter for rewriting tag names
--subdirectory-filter # Only look at the history which touches the given subdirectory
--prune-empty # Ignore empty commits generated by filters
--original # Use this option to set the namespace where the original commits will be stored
--force(-f) # Filter even with refs in refs/original or existing temp directory
--add # Add to the list of currently tracked branches instead of replacing it
--remotes(-r) # Shows the remote tracking branches
--all(-a) # Show both remote-tracking branches and local branches
--current # Includes the current branch to the list of revs to be shown
--topo-order # Makes commits appear in topological order
--date-order # Makes commits appear in date order
--sparse # Shows merges only reachable from one tip
--no-name # Do not show naming strings for each commit
--sha1-name # Name commits with unique prefix
--no-color # Turn off colored output
--delete(-d) # Delete branch
--force(-f) # Reset branch even if it already exists
--move(-m) # Rename branch
--copy(-c) # Copy branch
--all(-a) # Lists both local and remote branches
--track(-t) # Track remote branch
--no-track # Do not track remote branch
--set-upstream-to # Set remote branch to track
--merged # List branches that have been merged
--no-merged # List branches that have not been merged
--unset-upstream # Remove branch upstream information
--branch(-b) # Specify the branch to use
--default(-d) # Use default branch of the submodule
...args
]
# Find commits yet to be applied to upstream [upstream [head]]
extern "git cherry" [
--edit(-e) # Edit the commit message prior to committing
Expand Down
6 changes: 1 addition & 5 deletions tests/testenv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ pub struct TestEnv {

impl TestEnv {
pub fn new(shell: &str) -> TestEnv {
assert!(
env::var(TABCOMPLETE_FILE).is_err(),
"if {TABCOMPLETE_FILE} is set, these tests won't work"
);

let profile_prefix_data = vec![
include_str!("./aliases.ps1"),
include_str!("./additionalFns.ps1"),
Expand Down Expand Up @@ -89,6 +84,7 @@ impl TestEnv {
let output = Command::new(&self.shell)
.arg("-NoProfile")
.arg("-File")
.env_remove(TABCOMPLETE_FILE)
.arg(file_path.to_str().unwrap())
.env(PATH, paths_var)
.current_dir(root)
Expand Down

0 comments on commit 84bcbde

Please sign in to comment.