magnus-cli
Version:
Command line tool to pull and push source code files from a Rock RMS server
21 lines (20 loc) • 798 B
TypeScript
import { AxiosInstance } from 'axios';
import { RockFile } from '../types/index.js';
export declare const MAGNUS_PATH = "api/TriumphTech/Magnus/GetTreeItems/";
/**
* Creates an authenticated API client for Rock RMS
* @returns {AxiosInstance} API client
*/
export declare function createApiClient(): Promise<AxiosInstance>;
/**
* Get file content from Rock RMS
* @param {string} filePath - Path to the file on the server
* @returns {Promise<Uint8Array>} File content
*/
export declare function getFileContent(filePath: string): Promise<Uint8Array>;
/**
* List available files on Rock RMS
* @param {string} directoryPath - Path to the directory on the server
* @returns {Promise<RockFile[]>} List of files
*/
export declare function listFiles(directoryPath?: string): Promise<RockFile[]>;