mtc-cli

command module
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

MTC CLI

A command-line interface tool for validating MoreThanCertified lesson tasks locally.

Features

  • Submit lesson tasks for validation
  • Interactive progress tracking

Installation

Currently, the mtc-cli is only supported on macOS and Linux (including linux via Windows Subsystem for Linux).

With installer script
curl -s https://app.morethancertified.com/install.sh | sh
With Go
go install github.com/morethancertified/mtc-cli

Usage

Submit a lesson for validation:

mtc submit <lesson-token>

To reset your progress for a lesson:

mtc submit <lesson-token> -r

Example:

mtc submit cm4ppz694200blze51ts1234

Development

The project uses several development tools and commands:

Available Commands

This project uses just to manage commands. Please install it to use the commands below.

Reference to justfile commands:

  • just run - Run the application from source
  • just build - Build the binary to bin/mtc-cli
  • just test - Run tests
  • just fmt - Format code
  • just clean - Clean build artifacts
  • just install - Install the binary
  • just uninstall - Uninstall the binary
Configuration

The CLI uses Viper for configuration management. By default, it creates a config file at:

  • $HOME/.config/mtc/config.json

You can override the config location using the --config flag.

Project Structure
  • cmd/ - Command implementations
  • internal/ - Internal packages
    • mtcapi/ - API client implementation
    • widgets/ - TUI components

Building for Distribution

The project uses GoReleaser for building and distributing releases. Configuration can be found in:

License

MIT License - See LICENSE file for details.

Contributing

  1. Clone the repository (git clone https://github.com/morethancertified/mtc-cli)
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Dependencies

Key dependencies include:

  • github.com/spf13/cobra - CLI framework
  • github.com/spf13/viper - Configuration management
  • github.com/charmbracelet/bubbles - Terminal UI components
  • github.com/go-resty/resty/v2 - HTTP client

For a complete list of dependencies, see: go.mod

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL