Skip to content

garryspins/gmod-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

GFetch

GFetch is a multi-purpose, highly extensible system information commandline interface for Garry's Mod.
With overcomplicated CLI features it promises to be fun for 10 minutes then youll forget its there.

Features
  • Easy, Clean, Object Based API.
  • Provides Easy Access to Useful Information.
  • Neat Map Image.
  • Licensed under GPLv3, if it doesnt have a feature youd like you can add it.
Basic Usage

Just type gfetch in console and itll do its thing.

For more advanced commands type -h as an option

Documentation

If you dont understand a function look at the gfetch_modules directory for examples.

GFetch Methods


GFetch:AddModule(Str name,Str short) : Creates a Module : Shared

String name : Full Name of the module (aka 'Pretty Name')
String short : Short Name of the module, This is the name that people will see and use to disable it in the commandline

Returns : ModuleObj

GFetch:AddCommand(Str full,Str short,Str desc,Func func,Bool blocking) : Creates a command : Shared
String full : Full Command (Should start with --)
String short : Short Command (Should start with -)
String Descr : Description
Func Func : The commands function - Called with the current running commands configurations, Next argument
Bool Blocking: Should the command block the output of the fetch, this can also be done by returning true from the Func argument



ModuleObj Methods


! Means Set or Get.

Name of the Module
!Name()

Short Name of the Module
!Short()

Description of the Module
!Description()

Function of the Module
!Function()

State that the Module should be ran on (CLIENT/SERVER)
!State()

Images

Image

Image

Image

Image

Image

Image

Image

Image

Image

About

GFetch is a neofetch-clone for Garry's Mod

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published