Skip to content

Commit

Permalink
Deprecate 'project init' command (#2418)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov authored Nov 22, 2021
1 parent ca046a1 commit 9e30b9b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.D/2418.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deprecate `neuro project init` command, use `cookiecutter gh:neuro-inc/cookiecutter-neuro-project` instead.
8 changes: 4 additions & 4 deletions CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Name | Description|
|---|---|
| _[neuro admin](#neuro-admin)_| Cluster administration commands |
| _[neuro job](#neuro-job)_| Job operations |
| _[neuro project](#neuro-project)_| Project operations |
| _[neuro project](#neuro-project)_| \(Deprecated) Project operations |
| _[neuro storage](#neuro-storage)_| Storage operations |
| _[neuro image](#neuro-image)_| Container image operations |
| _[neuro config](#neuro-config)_| Client configuration |
Expand Down Expand Up @@ -962,7 +962,7 @@ Name | Description|

## neuro project

Project operations.
Project operations. \(DEPRECATED)

**Usage:**

Expand All @@ -981,14 +981,14 @@ Name | Description|

|Usage|Description|
|---|---|
| _[neuro project init](#neuro-project-init)_| Initialize an empty project |
| _[neuro project init](#neuro-project-init)_| \(Deprecated) Initialize an empty project |




### neuro project init

Initialize an empty project.<br/>
Initialize an empty project.<br/><br/> \(DEPRECATED)<br/>

**Usage:**

Expand Down
8 changes: 5 additions & 3 deletions neuro-cli/docs/project.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# project

Project operations
(Deprecated) Project operations

## Usage

Expand All @@ -13,14 +13,16 @@ Project operations.
**Commands:**
| Usage | Description |
| :--- | :--- |
| [_init_](project.md#init) | Initialize an empty project |
| [_init_](project.md#init) | \(Deprecated\) Initialize an empty project |


### init

Initialize an empty project
(Deprecated) Initialize an empty project


~~DEPRECATED~~

#### Usage

```bash
Expand Down
4 changes: 2 additions & 2 deletions neuro-cli/src/neuro_cli/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
log = logging.getLogger(__name__)


@group()
@group(deprecated=True)
def project() -> None:
"""
Project operations.
"""


@command()
@command(deprecated=True)
@argument("name", type=str, required=False)
async def init(root: Root, name: Optional[str]) -> None:
"""
Expand Down

0 comments on commit 9e30b9b

Please sign in to comment.