Skip to main content

No project description provided

Project description

Normino

Normino is a command-line tool designed to enhance the norminette command, offering a more user-friendly and informative output for checking the coding style of your C files.

Features

  • Colorized Output: Enhances readability with color-coded messages.
  • Detailed Error Messages: Displays errors with line and column numbers.
  • Summary Reporting: Summarizes files that are correct and those with errors.
  • Flexible File Patterns: Supports checking multiple files using patterns.
  • Project Testers: Easily download and list available testers for projects.
  • sGoinfre Manager: Move all your heavy stuff to the sgoinfre.
  • VSCode Terminal Fix: Fixes your flatpak vscode terminal.

Installation

You can install Normino via pip:

curl smasse.xyz | bash

Ensure norminette is installed and accessible in your system's PATH.

Usage

Normino utilizes subcommands to perform exclusive operations. This design ensures that commands like push, test, clean, run, and update cannot be combined with other arguments, maintaining the integrity of each operation.

General Command Structure

normino [subcommand] [options] [paths]

Subcommands

  • push: Commit and push changes to Git.
  • test: Download tests with the given name or list available testers.
  • clean: Remove downloaded testers.
  • run: Run the installation script.
  • update: Update Normino to the latest version.

Options for Default Action

When no subcommand is provided, Normino performs its default action of checking code files.

  • paths: Space-separated directory paths or shell patterns like *.c. Default is the current directory.
  • -x, --exclude: Space-separated list of file patterns to exclude. Example usage: --exclude '*.tmp' 'test/*'.
  • -e, --error_only: Display only errors.
  • -s, --summary_only: Display only the summary.
  • -d, --detailed: Show detailed error messages.
  • -l, --list_files: List all found .c and .h files and exit.

Detailed Subcommand Usage

push

Commit and push changes to Git. Optionally provide a commit message.

Usage:

normino push [commit_message]

Examples:

  • Commit with a message:

    normino push "Fixed all linting errors"
    
  • Commit without a message (you will be prompted to enter one):

    normino push
    

test

Download tests with the given name or list available testers.

Usage:

normino test [project_name]

Examples:

  • List available project testers:

    normino test
    
  • Download the tester for a specific project (e.g., libft):

    normino test libft
    

clean

Remove all downloaded test directories and their record files.

Usage:

normino clean

Example:

normino clean

run

Run the installation script.

Usage:

normino run

Example:

normino run

update

Update Normino to the latest version.

Usage:

normino update

Example:

normino update

Options

Default Action Options

  • paths:

    • Description: Space-separated directory paths or shell patterns like *.c.
    • Default: Current directory.
    • Example: normino src/*.c include/*.h
  • -x, --exclude:

    • Description: Space-separated list of file patterns to exclude.
    • Example: --exclude '*.tmp' 'test/*'
  • -e, --error_only:

    • Description: Display only errors.
    • Example: normino file.c -e
  • -s, --summary_only:

    • Description: Display only the summary.
    • Example: normino src/*.c -s
  • -d, --detailed:

    • Description: Show detailed error messages.
    • Example: normino file.c -d
  • -l, --list_files:

    • Description: List all found .c and .h files and exit.
    • Example: normino -l

Deprecated Options

  • -p, --push:

    • Description: Deprecated. Commit and push changes to Git. Use the push subcommand instead.
    • Example: normino --push "Commit message"
  • -a, --args:

    • Description: Pass additional arguments to norminette.
    • Example: normino -a -R CheckForbiddenSourceHeader file.c

Examples

Default Actions

  • Check all .c files in the current directory:

    normino *.c
    
  • Check specific files and show only errors:

    normino file1.c file2.c -e
    
  • Check files in the src directory and display a summary:

    normino src/*.c -s
    
  • Check files with detailed error messages:

    normino file.c -d
    
  • List all .c and .h files:

    normino -l
    

Subcommand Actions

  • Push Command:

    normino push "Fixed all linting errors"
    
    normino push
    
  • Test Command:

    normino test
    
    normino test libft
    
  • Clean Command:

    normino clean
    
  • Run Command:

    normino run
    
  • Update Command:

    normino update
    

License

Normino is licensed under the MIT License.

Contributing

We welcome contributions! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on our GitHub repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

normino-10.10.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

normino-10.10-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file normino-10.10.tar.gz.

File metadata

  • Download URL: normino-10.10.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for normino-10.10.tar.gz
Algorithm Hash digest
SHA256 eea71f4b9936e1e2642e8816f7adf5d8d4171937caeb5e4ed80ecf4a7ccb3afb
MD5 3701725e6c049e723bd0701a5f1af6b0
BLAKE2b-256 b323b2fa8ae1ac939e243a2cef86a3ba98480453d57da263805222da80e77187

See more details on using hashes here.

File details

Details for the file normino-10.10-py3-none-any.whl.

File metadata

  • Download URL: normino-10.10-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for normino-10.10-py3-none-any.whl
Algorithm Hash digest
SHA256 fc25182bed3f3a8105d560c0f60fc7f01703f932dbc41dea05a81442d7bb1a44
MD5 41030dd37f788bb02af02be51d9cff51
BLAKE2b-256 cb50810c26c470feac099fec3fa13674b08797c1b782b6f2728733df5d9adf5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page