Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make lane name optional on change scope #7852

Closed
wants to merge 1 commit into from

Conversation

NitsanCohen770
Copy link
Contributor


Enhancement of bit lane change-scope Command Functionality

Description:

Proposed updates to the bit lane change-scope command based on recent feedback:

  1. Optional Lane Name Parameter:

    • The current implementation requires a mandatory lane name when using the bit lane change-scope command. This proposal suggests making the <lane-name> parameter optional.
    • Modified command syntax:
      bit lane change-scope <remote-scope-name> --lane-name [optional]
    • This change will allow users to modify the scope for another lane without needing to specify the lane name.
  2. Scope Change Restriction:

    • It has been clarified that the scope for a lane can only be modified before it is exported to the remote. This mirrors the behavior of component renaming, which restricts renaming unless the component hasn't been imported.

The proposed enhancements aim to improve the user experience and clarity of the bit lane change-scope command.


davidfirst pushed a commit that referenced this pull request Aug 30, 2023
---

###  Enhancement of `LaneRenameCmd` Command Functionality

**Description:**

Building upon the changes made in the previous PR
([#7852](#7852)), this PR proposes
updates to the `LaneRenameCmd` command:

1. **Re-evaluation of Required Parameters**:
   - Current command definition:
     ```typescript
     name = 'rename <current-name> <new-name>';
     ```
- The necessity of the `current-name` parameter is being questioned. The
idea is to streamline the renaming process by potentially omitting the
need to specify the current name.

2. **Command Context**:
- This command is responsible for renaming a lane both locally and on
the remote, provided the lane has been exported.
   - Definition:
     ```typescript
description = `EXPERIMENTAL. change the lane-name locally and on the
remote (if exported)`;
     ```

The intention behind these updates is to refine and simplify the user
experience when renaming lanes.

---
@NitsanCohen770 NitsanCohen770 deleted the improve-change-scope-command branch August 30, 2023 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant