Command that moves to a repository #7554

Closed
opened 2025-11-02 07:29:42 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @vuvgaG on GitHub (Jul 7, 2021).

  • Gitea version (or commit ref): n/a 0.7.0

Description

Adding a command that opens the repository.

$ tea move user/repo1

The current shells working directory would be changed to that of the root of a local repository copy.

This could be done by using a shell wrapper (function for a bashrc) that listens for move commands and interprets the output into a cd command within the users current shell.

Shipping a bash file that can be sourced by users will enable the move command. (something like)

function teacmd()
{
  # capture the input args
  # if is a call to the move command
  # pass output to the users cd command
}

I'm not sure what you think about that or the idea of storing state client side?

Happy to make the PR.

Originally created by @vuvgaG on GitHub (Jul 7, 2021). - Gitea version (or commit ref): n/a 0.7.0 ## Description Adding a command that opens the repository. ``` $ tea move user/repo1 ``` The current shells working directory would be changed to that of the root of a local repository copy. This could be done by using a shell wrapper (function for a bashrc) that listens for move commands and interprets the output into a `cd` command within the users current shell. Shipping a bash file that can be sourced by users will enable the move command. (something like) ```bash function teacmd() { # capture the input args # if is a call to the move command # pass output to the users cd command } ``` I'm not sure what you think about that or the idea of storing state client side? Happy to make the PR.
Author
Owner

@techknowlogick commented on GitHub (Jul 7, 2021):

Thanks for opening this issue, the tea cli is managed here: https://gitea.com/gitea/tea/ please send all feature/bug reports there :)

@techknowlogick commented on GitHub (Jul 7, 2021): Thanks for opening this issue, the tea cli is managed here: https://gitea.com/gitea/tea/ please send all feature/bug reports there :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7554