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.9.tar.gz (9.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for normino-10.9.tar.gz
Algorithm Hash digest
SHA256 1887dc1085b0532506a1085db33d9f6c06235e6596921f8d0d65ecca83dbd7b3
MD5 a1972b8a0e827cab0af5c6d39b0fadfe
BLAKE2b-256 84f621b0fcf55186226a13e6b484bd4f730fa5746e41a8de9a39563541cbb71f

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