Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • N nes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Earth SciencesEarth Sciences
  • nes
  • Wiki
  • HowTo_Console_Line_Interface

HowTo_Console_Line_Interface · Changes

Page history
WIP authored Jul 05, 2025 by Carles Tena's avatar Carles Tena
Hide whitespace changes
Inline Side-by-side
HowTo_Console_Line_Interface.md
View page @ 0c793a65
...@@ -2,13 +2,6 @@ ...@@ -2,13 +2,6 @@
Follow the steps below to add a new command to the NES CLI: Follow the steps below to add a new command to the NES CLI:
## Command Summary Table
| Command | Description |
|-----------|-------------------------------------------------|
| `check` | Check for NaN and Inf values in a NetCDF file |
| `reorder` | Convert longitudes from [0, 360] to [-180, 180] |
### 1. Create a Script for Your Command ### 1. Create a Script for Your Command
Create a new Python script in the `nes/entrypoints/` directory, such as `my_function.py`. Create a new Python script in the `nes/entrypoints/` directory, such as `my_function.py`.
...@@ -74,7 +67,8 @@ def main(): ...@@ -74,7 +67,8 @@ def main():
### 5. Update Documentation ### 5. Update Documentation
Update the [wiki User Guide](UserGuide) with instructions on how to use your new command. 1. Update the [wiki User Guide](UserGuide) with the new command and its link.
2. Create a new wiki page for your command, following the format of existing pages.
### 6. Release ### 6. Release
...@@ -94,4 +88,4 @@ or ...@@ -94,4 +88,4 @@ or
python -m nes.entrypoints.cli my_function --option example_value python -m nes.entrypoints.cli my_function --option example_value
``` ```
This will execute the `my_function` command with the specified option. This will execute the `my_function` command with the specified option.
\ No newline at end of file
Clone repository
  • Home
  • Tutorials
  • Trainings
  • Development
  • Contribute
  • FAQ