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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

normino-10.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for normino-10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ed7dc3122d6e50c2999b7e655dc26d45da24b737886f19b6958c8956ee90596
MD5 48349e1fa84096865f10e623a2d24b5d
BLAKE2b-256 5da5bdb5bab59a151199fbcced6d194858a2274f04fd7fe126893a515fca0d1d

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